about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-28 23:43:02 +0000
committerJames Booth <boothj5@gmail.com>2015-11-28 23:43:02 +0000
commit2fc984e6735b7d76e7332e5192c1a80758015494 (patch)
tree81b59f822cdeb45e414d4fe059114ba2318d570d /src/command/commands.c
parent60305de0d979bc09669ab1215d3642e2daa5f045 (diff)
downloadprofani-tty-2fc984e6735b7d76e7332e5192c1a80758015494.tar.gz
Removed regular chat message triggers
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index f3c21cd4..4ac170e4 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -4334,53 +4334,6 @@ cmd_notify(ProfWin *window, const char *const command, gchar **args)
             } else {
                 cons_show("Usage: /notify message text on|off");
             }
-        } else if (g_strcmp0(args[1], "trigger") == 0) {
-            if (g_strcmp0(args[2], "add") == 0) {
-                if (!args[3]) {
-                    cons_bad_cmd_usage(command);
-                } else {
-                    gboolean res = prefs_add_msg_notify_trigger(args[3]);
-                    if (res) {
-                        cons_show("Adding message notification trigger: %s", args[3]);
-                    } else {
-                        cons_show("Message notification trigger already exists: %s", args[3]);
-                    }
-                }
-            } else if (g_strcmp0(args[2], "remove") == 0) {
-                if (!args[3]) {
-                    cons_bad_cmd_usage(command);
-                } else {
-                    gboolean res = prefs_remove_msg_notify_trigger(args[3]);
-                    if (res) {
-                        cons_show("Removing message notification trigger: %s", args[3]);
-                    } else {
-                        cons_show("Message notification trigger does not exist: %s", args[3]);
-                    }
-                }
-            } else if (g_strcmp0(args[2], "list") == 0) {
-                GList *triggers = prefs_get_msg_notify_triggers();
-                GList *curr = triggers;
-                if (curr) {
-                    cons_show("Message notification triggers:");
-                } else {
-                    cons_show("No message notification triggers");
-                }
-                while (curr) {
-                    cons_show("  %s", curr->data);
-                    curr = g_list_next(curr);
-                }
-                g_list_free_full(triggers, free);
-            } else if (g_strcmp0(args[2], "on") == 0) {
-                cons_show("Enabling message notification triggers");
-                prefs_set_boolean(PREF_NOTIFY_MESSAGE_TRIGGER, TRUE);
-            } else if (g_strcmp0(args[2], "off") == 0) {
-                cons_show("Disabling message notification triggers");
-                prefs_set_boolean(PREF_NOTIFY_MESSAGE_TRIGGER, FALSE);
-            } else {
-                cons_bad_cmd_usage(command);
-            }
-        } else {
-            cons_show("Usage: /notify message on|off");
         }
 
     // chat room settings