about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index eb3ef91b..dcfc8a1e 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -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