src/protocols/jabber/message.c

changeset 8135
d4df7d1821a5
parent 8043
86a087e9624c
child 8400
09cd5dba5ca4
equal deleted inserted replaced
8134:e0b690435403 8135:d4df7d1821a5
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);

mercurial