diff options
author | James Booth <boothj5@gmail.com> | 2015-10-26 23:40:37 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-26 23:40:37 +0000 |
commit | 0b51f4d36f4fe91147d2d06930798f84d1878a49 (patch) | |
tree | ec582f42482a433437d3741acd3b3f61e96c9f51 /src/ui | |
parent | d11f8d5ffc19ebaa2f7c1e3e44e18a92162cc0de (diff) | |
download | profani-tty-0b51f4d36f4fe91147d2d06930798f84d1878a49.tar.gz |
ui_smp_unsuccessful_receiver takes ProfChatWin
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/chatwin.c | 10 | ||||
-rw-r--r-- | src/ui/ui.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c index e782c0bc..35e50af1 100644 --- a/src/ui/chatwin.c +++ b/src/ui/chatwin.c @@ -131,12 +131,12 @@ ui_smp_unsuccessful_sender(ProfChatWin *chatwin) } void -ui_smp_unsuccessful_receiver(const char *const barejid) +ui_smp_unsuccessful_receiver(ProfChatWin *chatwin) { - ProfChatWin *chatwin = wins_get_chat(barejid); - if (chatwin) { - win_vprint((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", "Authentication failed, the secret entered by %s does not match yours.", barejid); - } + assert(chatwin != NULL); + + win_vprint((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", + "Authentication failed, the secret entered by %s does not match yours.", chatwin->barejid); } void diff --git a/src/ui/ui.h b/src/ui/ui.h index c1efb9ea..140d3426 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -71,7 +71,7 @@ void ui_smp_recipient_initiated_q(ProfChatWin *chatwin, const char *question); void ui_smp_successful(const char *const barejid); void ui_smp_unsuccessful_sender(ProfChatWin *chatwin); -void ui_smp_unsuccessful_receiver(const char *const barejid); +void ui_smp_unsuccessful_receiver(ProfChatWin *chatwin); void ui_smp_aborted(const char *const barejid); void ui_smp_answer_success(const char *const barejid); |