mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47: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
|
@ -39,14 +39,21 @@ public:
|
|||
int member_count() const { return m_members.size(); }
|
||||
String member_at(int i) { return m_members[i].name; }
|
||||
|
||||
void handle_join(const String& nick, const String& hostmask);
|
||||
void handle_part(const String& nick, const String& hostmask);
|
||||
void handle_topic(const String& nick, const String& topic);
|
||||
|
||||
IRCWindow& window() { return *m_window; }
|
||||
const IRCWindow& window() const { return *m_window; }
|
||||
|
||||
String topic() const { return m_topic; }
|
||||
|
||||
private:
|
||||
IRCChannel(IRCClient&, const String&);
|
||||
|
||||
IRCClient& m_client;
|
||||
String m_name;
|
||||
String m_topic;
|
||||
struct Member {
|
||||
String name;
|
||||
char prefix { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue