mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
IRCClient: Add ShowNickChangeMessages/ShowJoinPartMessages conf options
Allow IRCClient to hide nick change spam and join/part spam
This commit is contained in:
parent
a3edeb5868
commit
df7b617ba1
4 changed files with 22 additions and 4 deletions
|
@ -60,6 +60,9 @@ public:
|
|||
String ctcp_userinfo_reply() const { return m_ctcp_userinfo_reply; }
|
||||
String ctcp_finger_reply() const { return m_ctcp_finger_reply; }
|
||||
|
||||
bool show_join_part_messages() const { return m_show_join_part_messages; }
|
||||
bool show_nick_change_messages() const { return m_show_nick_change_messages; }
|
||||
|
||||
void join_channel(const String&);
|
||||
void part_channel(const String&);
|
||||
void change_nick(const String&);
|
||||
|
@ -208,6 +211,9 @@ private:
|
|||
HashMap<String, RefPtr<IRCChannel>, CaseInsensitiveStringTraits> m_channels;
|
||||
HashMap<String, RefPtr<IRCQuery>, CaseInsensitiveStringTraits> m_queries;
|
||||
|
||||
bool m_show_join_part_messages { 1 };
|
||||
bool m_show_nick_change_messages { 1 };
|
||||
|
||||
String m_ctcp_version_reply;
|
||||
String m_ctcp_userinfo_reply;
|
||||
String m_ctcp_finger_reply;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue