| 93 |
93 |
| 94 JabberChat *jabber_chat_find(JabberStream *js, const char *room, |
94 JabberChat *jabber_chat_find(JabberStream *js, const char *room, |
| 95 const char *server) |
95 const char *server) |
| 96 { |
96 { |
| 97 JabberChat *chat = NULL; |
97 JabberChat *chat = NULL; |
| 98 char *room_jid; |
|
| 99 |
98 |
| 100 if(NULL != js->chats) |
99 if(NULL != js->chats) |
| 101 { |
100 { |
| 102 room_jid = g_strdup_printf("%s@%s", room, server); |
101 char *room_jid = g_strdup_printf("%s@%s", room, server); |
| 103 |
102 |
| 104 chat = g_hash_table_lookup(js->chats, jabber_normalize(NULL, room_jid)); |
103 chat = g_hash_table_lookup(js->chats, jabber_normalize(NULL, room_jid)); |
| 105 g_free(room_jid); |
104 g_free(room_jid); |
| 106 } |
105 } |
| 107 |
106 |