comparison libpurple/protocols/jabber/chat.c @ 29031:9ae3e70a327b

jabber: More namespaces! This is a good stopping point for now.
author Paul Aurich <paul@darkrain42.org>
date Fri, 27 Nov 2009 17:07:19 +0000
parents a335d1bab20e
children 4ab6f0479bc5
comparison
equal deleted inserted replaced
29030:8d8a1afc4268 29031:9ae3e70a327b
823 return; 823 return;
824 } 824 }
825 825
826 purple_roomlist_set_in_progress(js->roomlist, TRUE); 826 purple_roomlist_set_in_progress(js->roomlist, TRUE);
827 827
828 iq = jabber_iq_new_query(js, JABBER_IQ_GET, "http://jabber.org/protocol/disco#items"); 828 iq = jabber_iq_new_query(js, JABBER_IQ_GET, NS_DISCO_ITEMS);
829 829
830 xmlnode_set_attrib(iq->node, "to", server); 830 xmlnode_set_attrib(iq->node, "to", server);
831 831
832 jabber_iq_set_callback(iq, roomlist_disco_result_cb, NULL); 832 jabber_iq_set_callback(iq, roomlist_disco_result_cb, NULL);
833 833
1199 chat->xhtml = FALSE; 1199 chat->xhtml = FALSE;
1200 1200
1201 for(x = xmlnode_get_child(query, "feature"); x; x = xmlnode_get_next_twin(x)) { 1201 for(x = xmlnode_get_child(query, "feature"); x; x = xmlnode_get_next_twin(x)) {
1202 const char *var = xmlnode_get_attrib(x, "var"); 1202 const char *var = xmlnode_get_attrib(x, "var");
1203 1203
1204 if(var && !strcmp(var, "http://jabber.org/protocol/xhtml-im")) { 1204 if(var && !strcmp(var, NS_XHTML_IM)) {
1205 chat->xhtml = TRUE; 1205 chat->xhtml = TRUE;
1206 } 1206 }
1207 } 1207 }
1208 #endif 1208 #endif
1209 } 1209 }
1214 xmlnode *query; 1214 xmlnode *query;
1215 char *room_jid; 1215 char *room_jid;
1216 1216
1217 room_jid = g_strdup_printf("%s@%s", chat->room, chat->server); 1217 room_jid = g_strdup_printf("%s@%s", chat->room, chat->server);
1218 1218
1219 iq = jabber_iq_new_query(chat->js, JABBER_IQ_GET, 1219 iq = jabber_iq_new_query(chat->js, JABBER_IQ_GET, NS_DISCO_INFO);
1220 "http://jabber.org/protocol/disco#info");
1221 1220
1222 xmlnode_set_attrib(iq->node, "to", room_jid); 1221 xmlnode_set_attrib(iq->node, "to", room_jid);
1223 1222
1224 query = xmlnode_get_child(iq->node, "query"); 1223 query = xmlnode_get_child(iq->node, "query");
1225 1224