Mercurial > pidgin
comparison src/protocols/jabber/message.c @ 8135:8f4ce853e685
[gaim-migrate @ 8840]
created a convenience function, and used it. a lot.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 17 Jan 2004 19:36:29 +0000 |
parents | 9a6df4d567e0 |
children | 0383e55cd658 |
comparison
equal
deleted
inserted
replaced
8134:ea3eb461efc0 | 8135:8f4ce853e685 |
---|---|
257 | 257 |
258 jm->from = g_strdup(xmlnode_get_attrib(packet, "from")); | 258 jm->from = g_strdup(xmlnode_get_attrib(packet, "from")); |
259 jm->to = g_strdup(xmlnode_get_attrib(packet, "to")); | 259 jm->to = g_strdup(xmlnode_get_attrib(packet, "to")); |
260 | 260 |
261 for(child = packet->child; child; child = child->next) { | 261 for(child = packet->child; child; child = child->next) { |
262 if(child->type != NODE_TYPE_TAG) | 262 if(child->type != XMLNODE_TYPE_TAG) |
263 continue; | 263 continue; |
264 | 264 |
265 if(!strcmp(child->name, "subject")) { | 265 if(!strcmp(child->name, "subject")) { |
266 if(!jm->subject) | 266 if(!jm->subject) |
267 jm->subject = xmlnode_get_data(child); | 267 jm->subject = xmlnode_get_data(child); |