Added /notify room mention setting

This commit is contained in:
James Booth
2014-05-24 16:46:05 +01:00
parent 7d90d218c0
commit 866d87af79
6 changed files with 50 additions and 26 deletions

View File

@@ -2219,12 +2219,15 @@ cmd_notify(gchar **args, struct cmd_help_t help)
} else if (strcmp(kind, "room") == 0) {
if (strcmp(value, "on") == 0) {
cons_show("Chat room notifications enabled.");
prefs_set_boolean(PREF_NOTIFY_ROOM, TRUE);
prefs_set_string(PREF_NOTIFY_ROOM, "on");
} else if (strcmp(value, "off") == 0) {
cons_show("Chat room notifications disabled.");
prefs_set_boolean(PREF_NOTIFY_ROOM, FALSE);
prefs_set_string(PREF_NOTIFY_ROOM, "off");
} else if (strcmp(value, "mention") == 0) {
cons_show("Chat room notifications enable on mention.");
prefs_set_string(PREF_NOTIFY_ROOM, "mention");
} else {
cons_show("Usage: /notify room on|off");
cons_show("Usage: /notify room on|off|mention");
}
// set typing setting