# HG changeset patch # User Paul Aurich # Date 1255623909 0 # Node ID 08ffa726aea2031c7432b0dfb975f69c8ef64559 # Parent d5ff2cd6064a7e748bfe624c5d302cb97b4fc416 jabber: Remove useless jabber_normalize calls now that the data in the hash table is normalized. diff -r d5ff2cd6064a -r 08ffa726aea2 libpurple/protocols/jabber/chat.c --- a/libpurple/protocols/jabber/chat.c Thu Oct 15 16:13:57 2009 +0000 +++ b/libpurple/protocols/jabber/chat.c Thu Oct 15 16:25:09 2009 +0000 @@ -106,7 +106,7 @@ { char *room_jid = g_strdup_printf("%s@%s", room, server); - chat = g_hash_table_lookup(js->chats, jabber_normalize(NULL, room_jid)); + chat = g_hash_table_lookup(js->chats, room_jid); g_free(room_jid); } @@ -373,7 +373,7 @@ JabberStream *js = chat->js; char *room_jid = g_strdup_printf("%s@%s", chat->room, chat->server); - g_hash_table_remove(js->chats, jabber_normalize(NULL, room_jid)); + g_hash_table_remove(js->chats, room_jid); g_free(room_jid); } diff -r d5ff2cd6064a -r 08ffa726aea2 libpurple/protocols/jabber/chat.h --- a/libpurple/protocols/jabber/chat.h Thu Oct 15 16:13:57 2009 +0000 +++ b/libpurple/protocols/jabber/chat.h Thu Oct 15 16:25:09 2009 +0000 @@ -62,6 +62,8 @@ * in-prpl function for joining a chat room. Doesn't require sticking goop * into a hash table. * + * @param room The room to join. This MUST be normalized already. + * @param server The server the room is on. This MUST be normalized already. * @param password The password (if required) to join the room. May be NULL. * @param data The chat hash table. May be NULL (it will be generated * for current core<>prpl API interface.)