23 lines
477 B
C++
23 lines
477 B
C++
|
#ifndef USERCMD_HPP
|
||
|
#define USERCMD_HPP
|
||
|
|
||
|
#include "../ICommand.hpp"
|
||
|
#include "../IRC.hpp"
|
||
|
#include <string>
|
||
|
|
||
|
class UserCMD : public ICommand
|
||
|
{
|
||
|
private:
|
||
|
std::string userName;
|
||
|
std::string realName;
|
||
|
public:
|
||
|
UserCMD();
|
||
|
~UserCMD();
|
||
|
bool validate(const User &user, const std::string &msg);
|
||
|
bool validate(const Connection &conn, const std::string &message);
|
||
|
int run(User &user, IRC::t_send_f &send);
|
||
|
int run(Connection &conn, IRC::t_send_f &send);
|
||
|
};
|
||
|
|
||
|
#endif
|