Added support for presence hooks
[cascardo/chat.git] / hook.c
diff --git a/hook.c b/hook.c
index e91e9fb..41ef3c5 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -58,6 +58,10 @@ hc_xmpp_hook (void *data, int type, iks *stanza)
     {
       hc_xmpp_recv_message (xmpp, stanza);
     }
+  else if (!iks_strcmp (iks_name (stanza), "presence"))
+    {
+      hc_xmpp_recv_presence (xmpp, stanza);
+    }
   else if (!iks_strcmp (iks_name (stanza), "iq"))
     {
       char *ns = iks_find_attrib (iks_child (stanza), "xmlns");