1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Show message in console when contact starts OTR session

This commit is contained in:
James Booth 2014-04-19 00:56:57 +01:00
parent 71aea78e90
commit e830e2a06a
2 changed files with 12 additions and 1 deletions

View File

@ -59,7 +59,7 @@ cb_is_logged_in(void *opdata, const char *accountname,
return PRESENCE_ONLINE; return PRESENCE_ONLINE;
} }
// no subsribed // not subscribed
if (p_contact_subscribed(contact) == FALSE) { if (p_contact_subscribed(contact) == FALSE) {
return PRESENCE_ONLINE; return PRESENCE_ONLINE;
} }

View File

@ -771,6 +771,17 @@ _ui_gone_secure(const char * const recipient, gboolean trusted)
} else { } else {
int num = wins_get_num(window); int num = wins_get_num(window);
status_bar_new(num); status_bar_new(num);
int ui_index = num;
if (ui_index == 10) {
ui_index = 0;
}
cons_show("%s started an OTR session (%d).", recipient, ui_index);
ProfWin *console = wins_get_console();
if (wins_is_current(console)) {
ui_current_page_off();
}
cons_alert();
} }
} }