comparison src/protocols/jabber/message.c @ 8537:dc818b62379e

[gaim-migrate @ 9276] jabber fixination committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 31 Mar 2004 18:37:06 +0000
parents 0383e55cd658
children 599d6ac9bbfe
comparison
equal deleted inserted replaced
8536:008e4576dbfc 8537:dc818b62379e
193 193
194 static void handle_groupchat_invite(JabberMessage *jm) 194 static void handle_groupchat_invite(JabberMessage *jm)
195 { 195 {
196 GHashTable *components; 196 GHashTable *components;
197 JabberID *jid = jabber_id_new(jm->to); 197 JabberID *jid = jabber_id_new(jm->to);
198 char *stripped;
198 199
199 if(!jid) 200 if(!jid)
200 return; 201 return;
201 202
202 components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); 203 components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
207 g_strdup(jm->js->user->node)); 208 g_strdup(jm->js->user->node));
208 g_hash_table_replace(components, g_strdup("password"), 209 g_hash_table_replace(components, g_strdup("password"),
209 g_strdup(jm->password)); 210 g_strdup(jm->password));
210 211
211 jabber_id_free(jid); 212 jabber_id_free(jid);
212 serv_got_chat_invite(jm->js->gc, jm->to, jm->from, jm->body, components); 213 stripped = gaim_markup_strip_html(jm->body);
214 serv_got_chat_invite(jm->js->gc, jm->to, jm->from, stripped, components);
215 g_free(stripped);
213 } 216 }
214 217
215 static void handle_error(JabberMessage *jm) 218 static void handle_error(JabberMessage *jm)
216 { 219 {
217 char *buf; 220 char *buf;