about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-11 18:24:44 +0000
committerJames Booth <boothj5@gmail.com>2014-01-11 18:24:44 +0000
commitb5469e2e06523c4ba71a7a215041080c89bb6763 (patch)
tree8844b0d92e1c92c3598c1eef867831e91ccc703b /src/ui/core.c
parentbf494b1b07654103cd0c0867e37326e618b58f4d (diff)
downloadprofani-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.c9
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;
 }