1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +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

@ -82,6 +82,9 @@ IRCClient::IRCClient()
m_show_join_part_messages = m_config->read_bool_entry("Messaging", "ShowJoinPartMessages", 1);
m_show_nick_change_messages = m_config->read_bool_entry("Messaging", "ShowNickChangeMessages", 1);
m_notify_on_message = m_config->read_bool_entry("Notifications", "NotifyOnMessage", 1);
m_notify_on_mention = m_config->read_bool_entry("Notifications", "NotifyOnMention", 1);
m_ctcp_version_reply = m_config->read_entry("CTCP", "VersionReply", "IRC Client [x86] / Serenity OS");
m_ctcp_userinfo_reply = m_config->read_entry("CTCP", "UserInfoReply", user_pw->pw_name);
m_ctcp_finger_reply = m_config->read_entry("CTCP", "FingerReply", user_pw->pw_name);