Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoochat.c @ 25130:16734635febf
Start hiding blist.h internals in prpls.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 27 Sep 2008 06:33:42 +0000 |
parents | b5210bb72273 |
children | 9bdd3ab8087f |
comparison
equal
deleted
inserted
replaced
24188:d1cfa8c11902 | 25130:16734635febf |
---|---|
512 purple_connection_get_display_name(gc), FALSE); | 512 purple_connection_get_display_name(gc), FALSE); |
513 | 513 |
514 c = purple_find_chat(gc, YAHOO_CHAT_ID); | 514 c = purple_find_chat(gc, YAHOO_CHAT_ID); |
515 | 515 |
516 if (room && (!c || purple_conv_chat_has_left(PURPLE_CONV_CHAT(c))) && members && | 516 if (room && (!c || purple_conv_chat_has_left(PURPLE_CONV_CHAT(c))) && members && |
517 ((g_list_length(members) > 1) || | 517 ((members->next != NULL) || |
518 !g_ascii_strcasecmp(members->data, purple_connection_get_display_name(gc)))) { | 518 !g_ascii_strcasecmp(members->data, purple_connection_get_display_name(gc)))) { |
519 int i; | 519 int i; |
520 GList *flags = NULL; | 520 GList *flags = NULL; |
521 for (i = 0; i < g_list_length(members); i++) | 521 for (i = 0; i < g_list_length(members); i++) |
522 flags = g_list_append(flags, GINT_TO_POINTER(PURPLE_CBFLAGS_NONE)); | 522 flags = g_list_prepend(flags, GINT_TO_POINTER(PURPLE_CBFLAGS_NONE)); |
523 if (c && purple_conv_chat_has_left(PURPLE_CONV_CHAT(c))) { | 523 if (c && purple_conv_chat_has_left(PURPLE_CONV_CHAT(c))) { |
524 /* this might be a hack, but oh well, it should nicely */ | 524 /* this might be a hack, but oh well, it should nicely */ |
525 char *tmpmsg; | 525 char *tmpmsg; |
526 | 526 |
527 purple_conversation_set_name(c, room); | 527 purple_conversation_set_name(c, room); |