Mercurial > pidgin
comparison libpurple/protocols/jabber/usernick.c @ 26773:e816444c1a01
Handle User Nick notifications via <presence/> stanzas (receive-only). Refs #864.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 02 May 2009 04:14:09 +0000 |
parents | c4fd9222dda1 |
children | 5872d1bc546f |
comparison
equal
deleted
inserted
replaced
26772:ab31daf1c1ee | 26773:e816444c1a01 |
---|---|
33 xmlnode *item = xmlnode_get_child(items, "item"); | 33 xmlnode *item = xmlnode_get_child(items, "item"); |
34 JabberBuddy *buddy = jabber_buddy_find(js, from, FALSE); | 34 JabberBuddy *buddy = jabber_buddy_find(js, from, FALSE); |
35 xmlnode *nick; | 35 xmlnode *nick; |
36 char *nickname = NULL; | 36 char *nickname = NULL; |
37 | 37 |
38 /* ignore the tune of people not on our buddy list */ | 38 /* ignore the nick of people not on our buddy list */ |
39 if (!buddy || !item) | 39 if (!buddy || !item) |
40 return; | 40 return; |
41 | 41 |
42 nick = xmlnode_get_child_with_namespace(item, "nick", "http://jabber.org/protocol/nick"); | 42 nick = xmlnode_get_child_with_namespace(item, "nick", "http://jabber.org/protocol/nick"); |
43 if (!nick) | 43 if (!nick) |