Setting: only write in console upon muc mention

`/console muc mention` additionally to `first|none|all`.

Fix https://github.com/profanity-im/profanity/issues/1371
This commit is contained in:
Michael Vetter
2020-07-10 15:16:34 +02:00
parent 10d771f3d1
commit 95ab7ee062
4 changed files with 16 additions and 5 deletions

View File

@@ -344,6 +344,11 @@ cons_show_incoming_room_message(const char* const nick, const char* const room,
win_println(console, THEME_INCOMING, "-", "<< room message: %s (win %d)", room, ui_index);
cons_alert(window);
}
} else if (g_strcmp0(muc_show, "mention") == 0) {
if (mention) {
win_println(console, THEME_MENTION, "-", "<< room mention: %s in %s (win %d)", nick, room, ui_index);
cons_alert(window);
}
}
g_free(muc_show);
}