diff options
author | Stefan Ott <stefan@ott.net> | 2022-04-14 04:25:30 +0200 |
---|---|---|
committer | Stefan Ott <stefan@ott.net> | 2022-04-23 02:42:23 +0200 |
commit | 8044c82614ad63b60cc0805b0335150eaccb50aa (patch) | |
tree | 50a6f61ab49f2a6e38f82cf4c2177bbde5164be0 /src/command/cmd_funcs.c | |
parent | 652d30bb7f7ce4dc89eebcbb4b796f10249a8be1 (diff) | |
download | profani-tty-8044c82614ad63b60cc0805b0335150eaccb50aa.tar.gz |
Add support for offline MUC notifications
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 15bf5d7c..fccb937e 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -5775,6 +5775,16 @@ cmd_notify(ProfWin* window, const char* const command, gchar** args) } else { cons_show("Usage: /notify room mention on|off"); } + } else if (g_strcmp0(args[1], "offline") == 0) { + if (g_strcmp0(args[2], "on") == 0) { + cons_show("Room notifications for offline messages enabled."); + prefs_set_boolean(PREF_NOTIFY_ROOM_OFFLINE, TRUE); + } else if (g_strcmp0(args[2], "off") == 0) { + cons_show("Room notifications for offline messages disabled."); + prefs_set_boolean(PREF_NOTIFY_ROOM_OFFLINE, FALSE); + } else { + cons_show("Usage: /notify room offline on|off"); + } } else if (g_strcmp0(args[1], "current") == 0) { if (g_strcmp0(args[2], "on") == 0) { cons_show("Current window chat room message notifications enabled."); |