about summary refs log tree commit diff stats
path: root/src/ui/chatwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-26 23:45:39 +0000
committerJames Booth <boothj5@gmail.com>2015-10-26 23:45:39 +0000
commit3cea2bc4f4ae6d57cf4cdead868c1e02311aca40 (patch)
tree2b74f4e5922503d41379ec2b8c4a5770dfb99fd5 /src/ui/chatwin.c
parent0b51f4d36f4fe91147d2d06930798f84d1878a49 (diff)
downloadprofani-tty-3cea2bc4f4ae6d57cf4cdead868c1e02311aca40.tar.gz
ui_smp_aborted takes ProfChatWin
Diffstat (limited to 'src/ui/chatwin.c')
-rw-r--r--src/ui/chatwin.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index 35e50af1..a5b2a9be 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -140,12 +140,11 @@ ui_smp_unsuccessful_receiver(ProfChatWin *chatwin)
 }
 
 void
-ui_smp_aborted(const char *const barejid)
+ui_smp_aborted(ProfChatWin *chatwin)
 {
-    ProfChatWin *chatwin = wins_get_chat(barejid);
-    if (chatwin) {
-        win_print((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", "SMP session aborted.");
-    }
+    assert(chatwin != NULL);
+
+    win_print((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", "SMP session aborted.");
 }
 
 void