src/protocols/jabber/jutil.c

changeset 8043
86a087e9624c
parent 7445
f325eaaabe1c
child 8401
9fe6cadf2581
equal deleted inserted replaced
8042:3643df1e6e78 8043:86a087e9624c
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 * 19 *
20 */ 20 */
21 #include "internal.h" 21 #include "internal.h"
22 #include "server.h" 22 #include "server.h"
23 #include "util.h"
23 24
24 #include "chat.h" 25 #include "chat.h"
25 #include "presence.h" 26 #include "presence.h"
26 #include "jutil.h" 27 #include "jutil.h"
27 28
298 g_free(domain); 299 g_free(domain);
299 300
300 return buf; 301 return buf;
301 } 302 }
302 303
304 GaimConversation *
305 jabber_find_unnormalized_conv(const char *name, GaimAccount *account)
306 {
307 GaimConversation *c = NULL;
308 GList *cnv;
309
310 g_return_val_if_fail(name != NULL, NULL);
311
312 for(cnv = gaim_get_conversations(); cnv; cnv = cnv->next) {
313 c = (GaimConversation*)cnv->data;
314 if(gaim_conversation_get_type(c) == GAIM_CONV_IM &&
315 !gaim_utf8_strcasecmp(name, gaim_conversation_get_name(c)) &&
316 account == gaim_conversation_get_account(c))
317 return c;
318 }
319
320 return NULL;
321 }

mercurial