mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
IRCClient: Add handling of some basic messages and commands.
This commit is contained in:
parent
b4f787090c
commit
f44ba6a4c6
5 changed files with 123 additions and 3 deletions
|
@ -27,6 +27,7 @@ public:
|
|||
String nickname() const { return m_nickname; }
|
||||
|
||||
void join_channel(const String&);
|
||||
void part_channel(const String&);
|
||||
|
||||
bool is_nick_prefix(char) const;
|
||||
|
||||
|
@ -73,10 +74,14 @@ private:
|
|||
void send_privmsg(const String& target, const String&);
|
||||
void process_line();
|
||||
void handle_join(const Message&);
|
||||
void handle_part(const Message&);
|
||||
void handle_ping(const Message&);
|
||||
void handle_topic(const Message&);
|
||||
void handle_rpl_topic(const Message&);
|
||||
void handle_namreply(const Message&);
|
||||
void handle_privmsg(const Message&);
|
||||
void handle(const Message&, const String& verbatim);
|
||||
void handle_user_command(const String&);
|
||||
|
||||
String m_hostname;
|
||||
int m_port { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue