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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp_conn.c b/src/xmpp_conn.c
index 2d1a3076..130a04b2 100644
--- a/src/xmpp_conn.c
+++ b/src/xmpp_conn.c
@@ -663,8 +663,8 @@ _connection_handler(xmpp_conn_t * const conn,
         chat_sessions_init();
 
         xmpp_handler_add(conn, _message_handler, NULL, STANZA_NAME_MESSAGE, NULL, ctx);
-        xmpp_handler_add(conn, presence_handler, NULL, STANZA_NAME_PRESENCE, NULL, ctx);
 
+        presence_add_handlers();
         iq_add_handlers();
 
         if (prefs_get_autoping() != 0) {