about summary refs log tree commit diff stats
path: root/src/xmpp_conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp_conn.c')
-rw-r--r--src/xmpp_conn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xmpp_conn.c b/src/xmpp_conn.c
index 36f9973b..c0940bf2 100644
--- a/src/xmpp_conn.c
+++ b/src/xmpp_conn.c
@@ -403,8 +403,7 @@ _connection_handler(xmpp_conn_t * const conn,
 
         chat_sessions_init();
 
-        xmpp_handler_add(conn, message_handler, NULL, STANZA_NAME_MESSAGE, NULL, ctx);
-
+        message_add_handlers();
         presence_add_handlers();
         iq_add_handlers();