1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

IRCClient: Add NotifyOnMessage/NotifyOnMention config options

Allow IRCClient user to opt out of notifications.
This commit is contained in:
Brendan Coles 2020-04-10 11:29:17 +00:00 committed by Andreas Kling
parent 070a8f2689
commit 63f8cbfb56
4 changed files with 17 additions and 1 deletions

View file

@ -63,6 +63,9 @@ public:
bool show_join_part_messages() const { return m_show_join_part_messages; }
bool show_nick_change_messages() const { return m_show_nick_change_messages; }
bool notify_on_message() const { return m_notify_on_message; }
bool notify_on_mention() const { return m_notify_on_mention; }
void join_channel(const String&);
void part_channel(const String&);
void change_nick(const String&);
@ -214,6 +217,9 @@ private:
bool m_show_join_part_messages { 1 };
bool m_show_nick_change_messages { 1 };
bool m_notify_on_message { 1 };
bool m_notify_on_mention { 1 };
String m_ctcp_version_reply;
String m_ctcp_userinfo_reply;
String m_ctcp_finger_reply;