diff options
author | James Booth <boothj5@gmail.com> | 2015-05-02 23:23:12 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-02 23:23:12 +0100 |
commit | be4ee40ed4566680b15385f6fc736402612e8812 (patch) | |
tree | a09b684b58996174209129b27520ad830fb181d2 /src/event | |
parent | 01181780801a46ecc6996be5b75b2245c1c1b953 (diff) | |
download | profani-tty-be4ee40ed4566680b15385f6fc736402612e8812.tar.gz |
Pass ProfChatWin to otr_on_message_send
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/client_events.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c index f3c67f63..ea327ca1 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -66,11 +66,7 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg) chat_state_active(chatwin->state); #ifdef HAVE_LIBOTR - prof_otrsendres_t res = otr_on_message_send(chatwin->barejid, msg); - if (res != PROF_OTRSUCCESS) { - char *errmsg = otr_senderror_str(res); - ui_win_error_line((ProfWin*)chatwin, errmsg); - } + otr_on_message_send(chatwin, msg); #else char *id = message_send_chat(chatwin->barejid, msg); chat_log_msg_out(chatwin->barejid, msg); |