24 lines
361 B
C++
24 lines
361 B
C++
#ifndef MODE_HPP
|
|
#define MODE_HPP
|
|
|
|
#include "../ICommand.hpp"
|
|
#include <string>
|
|
|
|
class Mode : public ICommand
|
|
{
|
|
private:
|
|
User *targetUser;
|
|
Channel *targetChannel;
|
|
int voice;
|
|
int oper;
|
|
int ban;
|
|
|
|
public:
|
|
Mode();
|
|
~Mode();
|
|
bool validate(const User &user, const std::string &msg);
|
|
int run(User &user, IRC::t_send_f &send);
|
|
};
|
|
|
|
#endif
|