Refactored iq.c to register iq handlers

This commit is contained in:
James Booth
2013-01-25 00:36:09 +00:00
parent 183a66c939
commit 6b632625df
3 changed files with 193 additions and 237 deletions

View File

@@ -740,7 +740,8 @@ _connection_handler(xmpp_conn_t * const conn,
xmpp_handler_add(conn, _message_handler, NULL, STANZA_NAME_MESSAGE, NULL, ctx);
xmpp_handler_add(conn, _presence_handler, NULL, STANZA_NAME_PRESENCE, NULL, ctx);
xmpp_handler_add(conn, iq_handler, NULL, STANZA_NAME_IQ, NULL, ctx);
iq_add_handlers(conn, ctx);
if (prefs_get_autoping() != 0) {
int millis = prefs_get_autoping() * 1000;