mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 21:16:21 +00:00
Added console MUC message preference
This commit is contained in:
@@ -240,7 +240,12 @@ sv_ev_room_message(const char *const room_jid, const char *const nick,
|
||||
// not currently on groupchat window
|
||||
} else {
|
||||
status_bar_new(num);
|
||||
cons_show_incoming_room_message(nick, mucwin->roomjid, num);
|
||||
char *muc_show = prefs_get_string(PREF_CONSOLE_MUC);
|
||||
if (g_strcmp0(muc_show, "all") == 0) {
|
||||
cons_show_incoming_room_message(nick, mucwin->roomjid, num);
|
||||
} else if (g_strcmp0(muc_show, "first") == 0 && mucwin->unread == 0) {
|
||||
cons_show_incoming_room_message(NULL, mucwin->roomjid, num);
|
||||
}
|
||||
|
||||
if (prefs_get_boolean(PREF_FLASH) && (strcmp(nick, my_nick) != 0)) {
|
||||
flash();
|
||||
|
||||
Reference in New Issue
Block a user