Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/presence.c @ 27014:a8537bbcfb79
Remove trailing whitespace that has snuck in.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 22 May 2009 03:54:29 +0000 |
parents | c9ac5cc1e46c |
children | 72bcdcb0629f |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Fri May 22 03:48:19 2009 +0000 +++ b/libpurple/protocols/jabber/presence.c Fri May 22 03:54:29 2009 +0000 @@ -100,7 +100,7 @@ if (!purple_account_is_connected(account)) return; - + if (!purple_status_is_active(status)) return; @@ -277,7 +277,7 @@ xmlnode *query = xmlnode_new_child(presence, "query"); gchar seconds[10]; g_snprintf(seconds, 10, "%d", (int) (time(NULL) - js->idle)); - + xmlnode_set_namespace(query, "jabber:iq:last"); xmlnode_set_attrib(query, "seconds", seconds); } @@ -626,7 +626,7 @@ avatar_hash = xmlnode_get_data(photo); } } - } else if (!strcmp(y->name, "query") && + } else if (!strcmp(y->name, "query") && !strcmp(xmlnode_get_namespace(y), "jabber:iq:last")) { /* resource has specified idle */ const gchar *seconds = xmlnode_get_attrib(y, "seconds"); @@ -644,7 +644,7 @@ NULL); purple_debug_info("jabber", "got delay %s yielding %ld s offset\n", stamp, offset); - idle += offset; + idle += offset; } if(jid->node && (chat = jabber_chat_find(js, jid->node, jid->domain))) {