Added settings to show message text in notifications

This commit is contained in:
James Booth
2014-05-24 22:14:26 +01:00
parent b25b3f3180
commit b36fbe413a
8 changed files with 85 additions and 16 deletions

View File

@@ -2220,6 +2220,16 @@ cmd_notify(gchar **args, struct cmd_help_t help)
} else {
cons_show("Usage: /notify message current on|off");
}
} else if (strcmp(args[1], "text") == 0) {
if (g_strcmp0(args[2], "on") == 0) {
cons_show("Showing text in message notifications enabled.");
prefs_set_boolean(PREF_NOTIFY_MESSAGE_TEXT, TRUE);
} else if (g_strcmp0(args[2], "off") == 0) {
cons_show("Showing text in message notifications disabled.");
prefs_set_boolean(PREF_NOTIFY_MESSAGE_TEXT, FALSE);
} else {
cons_show("Usage: /notify message text on|off");
}
} else {
cons_show("Usage: /notify message on|off");
}
@@ -2245,6 +2255,16 @@ cmd_notify(gchar **args, struct cmd_help_t help)
} else {
cons_show("Usage: /notify room current on|off");
}
} else if (strcmp(args[1], "text") == 0) {
if (g_strcmp0(args[2], "on") == 0) {
cons_show("Showing text in chat room message notifications enabled.");
prefs_set_boolean(PREF_NOTIFY_ROOM_TEXT, TRUE);
} else if (g_strcmp0(args[2], "off") == 0) {
cons_show("Showing text in chat room message notifications disabled.");
prefs_set_boolean(PREF_NOTIFY_ROOM_TEXT, FALSE);
} else {
cons_show("Usage: /notify room text on|off");
}
} else {
cons_show("Usage: /notify room on|off|mention");
}