23 lines
378 B
C++
23 lines
378 B
C++
|
#ifndef CAP_HPP
|
||
|
#define CAP_HPP
|
||
|
|
||
|
#include "../ICommand.hpp"
|
||
|
#include <string>
|
||
|
|
||
|
class Cap : public ICommand
|
||
|
{
|
||
|
private:
|
||
|
int mode;
|
||
|
std::string lsCode;
|
||
|
User *targetUser;
|
||
|
Channel *targetChannel;
|
||
|
std::string *capabilities;
|
||
|
public:
|
||
|
Cap();
|
||
|
~Cap();
|
||
|
bool validate(const User &user, const std::string &msg);
|
||
|
int run(User &user, IRC::t_send_f &send);
|
||
|
};
|
||
|
|
||
|
#endif
|