From 6097a5bade7fdcd333b8127c36d31024ae29284b Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 15 Jun 2015 22:01:28 +0100 Subject: Removed ui_get_current_chat() --- src/command/commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command') diff --git a/src/command/commands.c b/src/command/commands.c index 106ef4c8..1590629e 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -4215,7 +4215,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 = ui_get_current_chat(); + ProfChatWin *chatwin = wins_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); @@ -4259,7 +4259,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 = ui_get_current_chat(); + ProfChatWin *chatwin = wins_get_current_chat(); char *otr_query_message = otr_start_query(); message_send_chat_encrypted(chatwin->barejid, otr_query_message); } -- cgit 1.4.1-2-gfad0