comparison mcabber/mcabber/xmpp.c @ 1908:e2def760c6d0

Introduce NS_MUC_{USER,ADMIN,OWNER}
author Mikael Berthe <mikael@lilotux.net>
date Sun, 18 Apr 2010 14:04:45 +0200
parents 5d37cee8c6c6
children 9c14153e2580
comparison
equal deleted inserted replaced
1907:8517e5ec9db9 1908:e2def760c6d0
1291 lm_connection_send(connection, rcvd, NULL); 1291 lm_connection_send(connection, rcvd, NULL);
1292 lm_message_unref(rcvd); 1292 lm_message_unref(rcvd);
1293 } 1293 }
1294 1294
1295 if (from) { 1295 if (from) {
1296 x = lm_message_node_find_xmlns(m->node, 1296 x = lm_message_node_find_xmlns(m->node, NS_MUC_USER);
1297 "http://jabber.org/protocol/muc#user");
1298 if (x && !strcmp(x->name, "x")) 1297 if (x && !strcmp(x->name, "x"))
1299 got_muc_message(from, x); 1298 got_muc_message(from, x);
1300 } 1299 }
1301 1300
1302 return LM_HANDLER_RESULT_REMOVE_MESSAGE; 1301 return LM_HANDLER_RESULT_REMOVE_MESSAGE;
1343 time_t timestamp = 0L; 1342 time_t timestamp = 0L;
1344 LmMessageNode *muc_packet, *caps; 1343 LmMessageNode *muc_packet, *caps;
1345 LmMessageSubType mstype; 1344 LmMessageSubType mstype;
1346 1345
1347 // Check for MUC presence packet 1346 // Check for MUC presence packet
1348 muc_packet = lm_message_node_find_xmlns 1347 muc_packet = lm_message_node_find_xmlns(m->node, NS_MUC_USER);
1349 (m->node, "http://jabber.org/protocol/muc#user");
1350 1348
1351 from = lm_message_get_from(m); 1349 from = lm_message_get_from(m);
1352 1350
1353 rname = strchr(from, JID_RESOURCE_SEPARATOR); 1351 rname = strchr(from, JID_RESOURCE_SEPARATOR);
1354 if (rname) rname++; 1352 if (rname) rname++;