21 lines
340 B
C++
21 lines
340 B
C++
|
#ifndef KICK_HPP
|
||
|
#define KICK_HPP
|
||
|
|
||
|
#include "../ICommand.hpp"
|
||
|
#include <string>
|
||
|
|
||
|
class Kick : public ICommand
|
||
|
{
|
||
|
private:
|
||
|
User *targetUser;
|
||
|
Channel *targetChannel;
|
||
|
std::string reason;
|
||
|
public:
|
||
|
Kick();
|
||
|
~Kick();
|
||
|
bool validate(const User &user, const std::string &msg);
|
||
|
int run(User &user, IRC::t_send_f &send);
|
||
|
};
|
||
|
|
||
|
#endif
|