libgaim/protocols/jabber/iq.c

changeset 15225
d04a059065dd
parent 14453
1cc75906700c
child 20470
77693555855f
child 20472
6a6d2ef151e6
--- a/libgaim/protocols/jabber/iq.c	Sun Dec 10 22:01:22 2006 +0000
+++ b/libgaim/protocols/jabber/iq.c	Sun Dec 10 23:08:45 2006 +0000
@@ -25,6 +25,7 @@
 
 #include "buddy.h"
 #include "disco.h"
+#include "google.h"
 #include "iq.h"
 #include "oob.h"
 #include "roster.h"
@@ -279,12 +280,16 @@
 		}
 	}
 
-
 	if(xmlnode_get_child_with_namespace(packet, "si", "http://jabber.org/protocol/si")) {
 		jabber_si_parse(js, packet);
 		return;
 	}
 
+	if(xmlnode_get_child_with_namespace(packet, "new-mail", "google:mail:notify")) {
+		jabber_gmail_poke(js, packet);
+		return;
+	}
+
 	/* If we get here, send the default error reply mandated by XMPP-CORE */
 	if(type && (!strcmp(type, "set") || !strcmp(type, "get"))) {
 		JabberIq *iq = jabber_iq_new(js, JABBER_IQ_ERROR);

mercurial