mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-29 19:56:07 -04:00
parent
892a9953b4
commit
d0c8ed462d
@ -484,6 +484,7 @@ _connection_handler(xmpp_conn_t * const conn,
|
||||
|
||||
chat_sessions_init();
|
||||
|
||||
xmpp_handler_add(conn, connection_error_handler, NULL, NULL, STANZA_TYPE_ERROR, ctx);
|
||||
roster_add_handlers();
|
||||
message_add_handlers();
|
||||
presence_add_handlers();
|
||||
|
@ -51,7 +51,6 @@ message_add_handlers(void)
|
||||
xmpp_conn_t * const conn = connection_get_conn();
|
||||
xmpp_ctx_t * const ctx = connection_get_ctx();
|
||||
|
||||
HANDLE(NULL, STANZA_TYPE_ERROR, connection_error_handler);
|
||||
HANDLE(NULL, STANZA_TYPE_GROUPCHAT, _groupchat_message_handler);
|
||||
HANDLE(NULL, STANZA_TYPE_CHAT, _chat_message_handler);
|
||||
HANDLE(NULL, NULL, _conference_message_handler);
|
||||
|
@ -72,7 +72,6 @@ presence_add_handlers(void)
|
||||
xmpp_conn_t * const conn = connection_get_conn();
|
||||
xmpp_ctx_t * const ctx = connection_get_ctx();
|
||||
|
||||
HANDLE(NULL, STANZA_TYPE_ERROR, connection_error_handler);
|
||||
HANDLE(STANZA_NS_MUC_USER, NULL, _room_presence_handler);
|
||||
HANDLE(NULL, STANZA_TYPE_UNAVAILABLE, _unavailable_handler);
|
||||
HANDLE(NULL, STANZA_TYPE_SUBSCRIBE, _subscribe_handler);
|
||||
|
Loading…
Reference in New Issue
Block a user