diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-10 15:16:34 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-10 15:16:34 +0200 |
commit | 95ab7ee062b9fbeea73b90f69c6fef3325f880c9 (patch) | |
tree | 7caea5336c4aa47b9b6b71d5c8102d7804c008cb /src/ui | |
parent | 10d771f3d1994cc450e96f25d45a3bbf297fb48f (diff) | |
download | profani-tty-95ab7ee062b9fbeea73b90f69c6fef3325f880c9.tar.gz |
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
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 2f81af04..bd149f3d 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -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); } |