about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-16 23:48:47 +0000
committerJames Booth <boothj5@gmail.com>2016-02-16 23:48:47 +0000
commit2ac911618a89c1a67a6fcf679b99a84a2ba94339 (patch)
tree593c3602955098ec25ca43f3cc0fdfbf848f8801 /src
parent7945ef52773e78f41f3b9b4b29c6346a303fb4b8 (diff)
downloadprofani-tty-2ac911618a89c1a67a6fcf679b99a84a2ba94339.tar.gz
Fix call to plugins_post_chat_message_send
Diffstat (limited to 'src')
-rw-r--r--src/event/client_events.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c
index 2bdae789..c077a389 100644
--- a/src/event/client_events.c
+++ b/src/event/client_events.c
@@ -128,6 +128,9 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg)
             free(id);
         }
     }
+
+    plugins_post_chat_message_send(chatwin->barejid, plugin_msg);
+    free(plugin_msg);
     return;
 #endif
 #endif
@@ -142,6 +145,9 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg)
         chatwin_outgoing_msg(chatwin, plugin_msg, id, PROF_MSG_PLAIN);
         free(id);
     }
+
+    plugins_post_chat_message_send(chatwin->barejid, plugin_msg);
+    free(plugin_msg);
     return;
 #endif
 #endif
@@ -160,6 +166,9 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg)
         chatwin_outgoing_msg(chatwin, plugin_msg, id, PROF_MSG_PLAIN);
         free(id);
     }
+
+    plugins_post_chat_message_send(chatwin->barejid, plugin_msg);
+    free(plugin_msg);
     return;
 #endif
 #endif
@@ -171,12 +180,12 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg)
     chat_log_msg_out(chatwin->barejid, plugin_msg);
     chatwin_outgoing_msg(chatwin, plugin_msg, id, PROF_MSG_PLAIN);
     free(id);
-    return;
-#endif
-#endif
 
     plugins_post_chat_message_send(chatwin->barejid, plugin_msg);
     free(plugin_msg);
+    return;
+#endif
+#endif
 }
 
 void