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