diff options
author | James Booth <boothj5@gmail.com> | 2014-12-20 18:39:39 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-12-20 18:39:39 +0000 |
commit | 6800bf1cad19d3ec99a3c8333be5fae81a24954d (patch) | |
tree | c086feaef444b1665825c14c49d077af1e62ae83 /src/command | |
parent | ea267e2017c8e941166754d50180fdfbca85eefe (diff) | |
download | profani-tty-6800bf1cad19d3ec99a3c8333be5fae81a24954d.tar.gz |
Fixed tests
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 7316de2f..68785ee6 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -3887,7 +3887,7 @@ cmd_otr(gchar **args, struct cmd_help_t help) } else if (!ui_current_win_is_otr()) { ui_current_print_formatted_line('!', 0, "You are not currently in an OTR session."); } else { - ProfChatWin *chatwin = wins_get_current_chat(); + ProfChatWin *chatwin = ui_get_current_chat(); char *fingerprint = otr_get_their_fingerprint(chatwin->barejid); ui_current_print_formatted_line('!', 0, "%s's OTR fingerprint: %s", chatwin->barejid, fingerprint); free(fingerprint); @@ -3933,7 +3933,7 @@ cmd_otr(gchar **args, struct cmd_help_t help) if (!otr_key_loaded()) { ui_current_print_formatted_line('!', 0, "You have not generated or loaded a private key, use '/otr gen'"); } else { - ProfChatWin *chatwin = wins_get_current_chat(); + ProfChatWin *chatwin = ui_get_current_chat(); char *otr_query_message = otr_start_query(); message_send_chat(chatwin->barejid, otr_query_message); } |