23 lines
439 B
C++
23 lines
439 B
C++
|
#ifndef NICK_HPP
|
||
|
#define NICK_HPP
|
||
|
|
||
|
#include "../ICommand.hpp"
|
||
|
#include "../IRC.hpp"
|
||
|
#include <string>
|
||
|
|
||
|
class Nick : public ICommand
|
||
|
{
|
||
|
private:
|
||
|
std::string nickName;
|
||
|
public:
|
||
|
Nick();
|
||
|
~Nick();
|
||
|
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
|
||
|
|