From 40dc5932f71ccb6bd67f4fd8365749a0ddecbf71 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 5 Nov 2019 21:06:07 +0100 Subject: Add `/titlebar show presence` command Additionally to `/presence titlebar on` we now allow the setting via /titlebar show|hide presence` since it's about the titlebar. Regards https://github.com/profanity-im/profanity/issues/1116 --- src/ui/console.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui') diff --git a/src/ui/console.c b/src/ui/console.c index 1fe9b01a..198b61a4 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1151,6 +1151,12 @@ cons_titlebar_setting(void) } else { cons_show("Resource show (/titlebar) : OFF"); } + + if (prefs_get_boolean(PREF_PRESENCE)) { + cons_show("Titlebar presence (/titlebar) : ON"); + } else { + cons_show("Titlebar presence (/titlebar) : OFF"); + } } void -- cgit 1.4.1-2-gfad0