diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/core.c | 9 | ||||
-rw-r--r-- | src/ui/window.c | 1 | ||||
-rw-r--r-- | src/ui/window.h | 1 |
3 files changed, 11 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; } diff --git a/src/ui/window.c b/src/ui/window.c index c144dc06..6d6df429 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -55,6 +55,7 @@ win_create(const char * const title, int cols, win_type_t type) new_win->history_shown = 0; new_win->type = type; new_win->is_otr = FALSE; + new_win->is_trusted = FALSE; scrollok(new_win->win, TRUE); return new_win; diff --git a/src/ui/window.h b/src/ui/window.h index 4a65488e..fabf8ae6 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -49,6 +49,7 @@ typedef struct prof_win_t { WINDOW *win; win_type_t type; gboolean is_otr; + gboolean is_trusted; int y_pos; int paged; int unread; |