X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fchat.git;a=blobdiff_plain;f=hook.c;h=e91e9fbb714aeef1f17fab38c548d0c8fc330309;hp=43eeef2766dfd71a8e839cc944eaff010bbed12e;hb=8a0e2834ab01c824196aab0e81c713f6b88110cd;hpb=def38cbbaffe0bd4504580384af2bbbde0b62762 diff --git a/hook.c b/hook.c index 43eeef2..e91e9fb 100644 --- a/hook.c +++ b/hook.c @@ -54,7 +54,11 @@ int hc_xmpp_hook (void *data, int type, iks *stanza) { hc_xmpp_t *xmpp = (hc_xmpp_t *) data; - if (!iks_strcmp (iks_name (stanza), "iq")) + if (!iks_strcmp (iks_name (stanza), "message")) + { + hc_xmpp_recv_message (xmpp, stanza); + } + else if (!iks_strcmp (iks_name (stanza), "iq")) { char *ns = iks_find_attrib (iks_child (stanza), "xmlns"); hc_xmpp_hook_t hook;