Split regular and chat room notify settings

This commit is contained in:
James Booth
2014-05-24 15:54:10 +01:00
parent 663a22fb7e
commit 7d90d218c0
6 changed files with 29 additions and 4 deletions

View File

@@ -1163,6 +1163,11 @@ _cons_notify_setting(void)
else
cons_show("Messages (/notify message) : OFF");
if (prefs_get_boolean(PREF_NOTIFY_ROOM))
cons_show("Messages (/notify room) : ON");
else
cons_show("Messages (/notify room) : OFF");
if (prefs_get_boolean(PREF_NOTIFY_TYPING))
cons_show("Composing (/notify typing) : ON");
else

View File

@@ -1696,7 +1696,7 @@ _ui_room_message(const char * const room_jid, const char * const nick,
if (prefs_get_boolean(PREF_BEEP)) {
beep();
}
if (prefs_get_boolean(PREF_NOTIFY_MESSAGE)) {
if (prefs_get_boolean(PREF_NOTIFY_ROOM)) {
Jid *jidp = jid_create(room_jid);
notify_room_message(nick, jidp->localpart, ui_index);
jid_destroy(jidp);