libpurple/protocols/jabber/adhoccommands.c

branch
string-comparison-r2
changeset 38259
c593fc9f5438
parent 38258
9a6551eba09c
child 38358
30ba44276e74
equal deleted inserted replaced
38258:9a6551eba09c 38259:c593fc9f5438
72 72
73 for(item = query->child; item; item = item->next) { 73 for(item = query->child; item; item = item->next) {
74 JabberAdHocCommands *cmd; 74 JabberAdHocCommands *cmd;
75 if(item->type != XMLNODE_TYPE_TAG) 75 if(item->type != XMLNODE_TYPE_TAG)
76 continue; 76 continue;
77 if(strcmp(item->name, "item")) 77 if(!purple_strequal(item->name, "item"))
78 continue; 78 continue;
79 cmd = g_new0(JabberAdHocCommands, 1); 79 cmd = g_new0(JabberAdHocCommands, 1);
80 80
81 cmd->jid = g_strdup(xmlnode_get_attrib(item,"jid")); 81 cmd->jid = g_strdup(xmlnode_get_attrib(item,"jid"));
82 cmd->node = g_strdup(xmlnode_get_attrib(item,"node")); 82 cmd->node = g_strdup(xmlnode_get_attrib(item,"node"));
255 /* re-fill list */ 255 /* re-fill list */
256 for(item = query->child; item; item = item->next) { 256 for(item = query->child; item; item = item->next) {
257 JabberAdHocCommands *cmd; 257 JabberAdHocCommands *cmd;
258 if(item->type != XMLNODE_TYPE_TAG) 258 if(item->type != XMLNODE_TYPE_TAG)
259 continue; 259 continue;
260 if(strcmp(item->name, "item")) 260 if(!purple_strequal(item->name, "item"))
261 continue; 261 continue;
262 cmd = g_new0(JabberAdHocCommands, 1); 262 cmd = g_new0(JabberAdHocCommands, 1);
263 cmd->jid = g_strdup(xmlnode_get_attrib(item,"jid")); 263 cmd->jid = g_strdup(xmlnode_get_attrib(item,"jid"));
264 cmd->node = g_strdup(xmlnode_get_attrib(item,"node")); 264 cmd->node = g_strdup(xmlnode_get_attrib(item,"node"));
265 cmd->name = g_strdup(xmlnode_get_attrib(item,"name")); 265 cmd->name = g_strdup(xmlnode_get_attrib(item,"name"));

mercurial