diff options
author | James Booth <boothj5@gmail.com> | 2015-05-04 00:55:43 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-04 00:55:43 +0100 |
commit | ef54ff305eb4d5f971547721e20a8347f6ee7770 (patch) | |
tree | acf2f7a1059329d5199ef8661ce5e56a2bc7bbe6 /src/otr/otr.c | |
parent | c3d2a7e9377c9d16f1ee4ea57c6e0c1f78b5ac6e (diff) | |
download | profani-tty-ef54ff305eb4d5f971547721e20a8347f6ee7770.tar.gz |
ui_outgoing_chat_msg now takes ProfChatWin as argument
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r-- | src/otr/otr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c index ae8ed006..fbc26eb8 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -325,7 +325,7 @@ otr_on_message_send(ProfChatWin *chatwin, const char * const message) if (encrypted) { id = message_send_chat_encrypted(chatwin->barejid, encrypted); chat_log_otr_msg_out(chatwin->barejid, message); - ui_outgoing_chat_msg(chatwin->barejid, message, id); + ui_outgoing_chat_msg(chatwin, message, id); otr_free_message(encrypted); } else { ui_win_error_line((ProfWin*)chatwin, "Failed to encrypt and send message."); @@ -339,13 +339,13 @@ otr_on_message_send(ProfChatWin *chatwin, const char * const message) } else if (policy == PROF_OTRPOLICY_OPPORTUNISTIC) { char *otr_tagged_msg = otr_tag_message(message); id = message_send_chat_encrypted(chatwin->barejid, otr_tagged_msg); - ui_outgoing_chat_msg(chatwin->barejid, message, id); + ui_outgoing_chat_msg(chatwin, message, id); chat_log_msg_out(chatwin->barejid, message); free(otr_tagged_msg); } else { id = message_send_chat(chatwin->barejid, message); - ui_outgoing_chat_msg(chatwin->barejid, message, id); + ui_outgoing_chat_msg(chatwin, message, id); chat_log_msg_out(chatwin->barejid, message); } |