Mercurial > pidgin
diff src/protocols/jabber/chat.c @ 7262:85fcaff1505d
[gaim-migrate @ 7839]
put normalizing back in the realm of sanity (what was I thinking?) and fix
jabber chat case sensitivity (as well as a few other things)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 14 Oct 2003 16:44:36 +0000 |
parents | bf630f7dfdcd |
children | 89e211509d02 |
line wrap: on
line diff
--- a/src/protocols/jabber/chat.c Tue Oct 14 05:07:39 2003 +0000 +++ b/src/protocols/jabber/chat.c Tue Oct 14 16:44:36 2003 +0000 @@ -68,7 +68,7 @@ room_jid = g_strdup_printf("%s@%s", room, server); - chat = g_hash_table_lookup(js->chats, room_jid); + chat = g_hash_table_lookup(js->chats, jabber_normalize(room_jid)); g_free(room_jid); return chat; @@ -160,7 +160,7 @@ JabberChat *chat; char *room, *server, *handle, *passwd; xmlnode *presence, *x; - char *room_jid, *full_jid; + char *tmp, *room_jid, *full_jid; JabberStream *js = gc->proto_data; room = g_hash_table_lookup(data, "room"); @@ -174,7 +174,9 @@ if(jabber_chat_find(js, room, server)) return; - room_jid = g_strdup_printf("%s@%s", room, server); + tmp = g_strdup_printf("%s@%s", room, server); + room_jid = g_strdup(jabber_normalize(tmp)); + g_free(tmp); chat = g_new0(JabberChat, 1); chat->js = gc->proto_data; @@ -227,7 +229,7 @@ JabberStream *js = chat->js; char *room_jid = g_strdup_printf("%s@%s", chat->room, chat->server); - g_hash_table_remove(js->chats, room_jid); + g_hash_table_remove(js->chats, jabber_normalize(room_jid)); g_free(room_jid); g_free(chat->room);