about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-24 21:13:33 +0100
committerJames Booth <boothj5@gmail.com>2014-05-24 21:13:33 +0100
commitb25b3f318036e6b14d52fef5a4f418a36d9b5a64 (patch)
tree64390020af43f1435e2bd214a2870c07db8b3168 /src/command/commands.c
parenteb0f0dd96b368424a1f2344d23c67c1e8934aae4 (diff)
downloadprofani-tty-b25b3f318036e6b14d52fef5a4f418a36d9b5a64.tar.gz
Added notification setting for typing in current window
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index e81c4e66..c64b3883 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -2212,10 +2212,10 @@ cmd_notify(gchar **args, struct cmd_help_t help)
             prefs_set_boolean(PREF_NOTIFY_MESSAGE, FALSE);
         } else if (strcmp(args[1], "current") == 0) {
             if (g_strcmp0(args[2], "on") == 0) {
-                cons_show("Current window messages notifications enabled.");
+                cons_show("Current window message notifications enabled.");
                 prefs_set_boolean(PREF_NOTIFY_MESSAGE_CURRENT, TRUE);
             } else if (g_strcmp0(args[2], "off") == 0) {
-                cons_show("Current window messages notifications disabled.");
+                cons_show("Current window message notifications disabled.");
                 prefs_set_boolean(PREF_NOTIFY_MESSAGE_CURRENT, FALSE);
             } else {
                 cons_show("Usage: /notify message current on|off");
@@ -2233,14 +2233,14 @@ cmd_notify(gchar **args, struct cmd_help_t help)
             cons_show("Chat room notifications disabled.");
             prefs_set_string(PREF_NOTIFY_ROOM, "off");
         } else if (strcmp(args[1], "mention") == 0) {
-            cons_show("Chat room notifications enable on mention.");
+            cons_show("Chat room notifications enabled on mention.");
             prefs_set_string(PREF_NOTIFY_ROOM, "mention");
         } else if (strcmp(args[1], "current") == 0) {
             if (g_strcmp0(args[2], "on") == 0) {
-                cons_show("Current window chat room messages notifications enabled.");
+                cons_show("Current window chat room message notifications enabled.");
                 prefs_set_boolean(PREF_NOTIFY_ROOM_CURRENT, TRUE);
             } else if (g_strcmp0(args[2], "off") == 0) {
-                cons_show("Current window chat room messages notifications disabled.");
+                cons_show("Current window chat room message notifications disabled.");
                 prefs_set_boolean(PREF_NOTIFY_ROOM_CURRENT, FALSE);
             } else {
                 cons_show("Usage: /notify room current on|off");
@@ -2257,6 +2257,16 @@ cmd_notify(gchar **args, struct cmd_help_t help)
         } else if (strcmp(args[1], "off") == 0) {
             cons_show("Typing notifications disabled.");
             prefs_set_boolean(PREF_NOTIFY_TYPING, FALSE);
+        } else if (strcmp(args[1], "current") == 0) {
+            if (g_strcmp0(args[2], "on") == 0) {
+                cons_show("Current window typing notifications enabled.");
+                prefs_set_boolean(PREF_NOTIFY_TYPING_CURRENT, TRUE);
+            } else if (g_strcmp0(args[2], "off") == 0) {
+                cons_show("Current window typing notifications disabled.");
+                prefs_set_boolean(PREF_NOTIFY_TYPING_CURRENT, FALSE);
+            } else {
+                cons_show("Usage: /notify typing current on|off");
+            }
         } else {
             cons_show("Usage: /notify typing on|off");
         }