Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/google.c @ 25067:36c73d036026
disapproval of revision '8a80f271858548f73cac50625660e87df1970bcc'
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 08 Feb 2009 00:23:13 +0000 |
parents | e30e9779e7bf |
children | 050052891c55 b98519a42e53 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c Thu Feb 05 05:42:58 2009 +0000 +++ b/libpurple/protocols/jabber/google.c Sun Feb 08 00:23:13 2009 +0000 @@ -144,8 +144,9 @@ } void -jabber_gmail_poke(JabberStream *js, const char *type) +jabber_gmail_poke(JabberStream *js, xmlnode *packet) { + const char *type; xmlnode *query; JabberIq *iq; @@ -153,8 +154,11 @@ if (!purple_account_get_check_mail(js->gc->account)) return; + type = xmlnode_get_attrib(packet, "type"); + + /* Is this an initial incoming mail notification? If so, send a request for more info */ - if (strcmp(type, "set")) + if (strcmp(type, "set") || !xmlnode_get_child(packet, "new-mail")) return; purple_debug(PURPLE_DEBUG_MISC, "jabber",