diff options
author | James Booth <boothj5@gmail.com> | 2014-01-11 18:24:44 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-11 18:24:44 +0000 |
commit | b5469e2e06523c4ba71a7a215041080c89bb6763 (patch) | |
tree | 8844b0d92e1c92c3598c1eef867831e91ccc703b /src/ui/core.c | |
parent | bf494b1b07654103cd0c0867e37326e618b58f4d (diff) | |
download | profani-tty-b5469e2e06523c4ba71a7a215041080c89bb6763.tar.gz |
Added [OTR] and (trusted/untrusted) to titlebar for OTR sessions
Diffstat (limited to 'src/ui/core.c')
-rw-r--r-- | src/ui/core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 622261b6..41fd31e8 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -516,6 +516,15 @@ _get_recipient_string(ProfWin *window) g_string_append(result, window->from); } + if (window->is_otr) { + g_string_append(result, " [OTR]"); + if (window->is_trusted) { + g_string_append(result, " (trusted)"); + } else { + g_string_append(result, " (untrusted)"); + } + } + return result; } |