comparison src/protocols/irc/irc.c @ 2292:6625d0755c51

[gaim-migrate @ 2302] another fix committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 17 Sep 2001 06:21:33 +0000
parents 5e35b4c63c2c
children 88552158f19b
comparison
equal deleted inserted replaced
2291:5e35b4c63c2c 2292:6625d0755c51
610 610
611 static void irc_change_name(struct gaim_connection *gc, char *old, char *new) 611 static void irc_change_name(struct gaim_connection *gc, char *old, char *new)
612 { 612 {
613 GSList *bcs = gc->buddy_chats; 613 GSList *bcs = gc->buddy_chats;
614 char buf[IRC_BUF_LEN]; 614 char buf[IRC_BUF_LEN];
615 int n = 0;
616 615
617 while (bcs) { 616 while (bcs) {
618 struct conversation *b = bcs->data; 617 struct conversation *b = bcs->data;
619 618
620 GList *r = b->in_room; 619 GList *r = b->in_room;
621 while (r) { 620 while (r) {
622 char *who = r->data; 621 char *who = r->data;
622 int n = 0;
623 if (*who == '@') 623 if (*who == '@')
624 buf[n++] = *who++; 624 buf[n++] = *who++;
625 if (*who == '+') 625 if (*who == '+')
626 buf[n++] = *who++; 626 buf[n++] = *who++;
627 g_snprintf(buf + n, sizeof(buf) - n, "%s", new); 627 g_snprintf(buf + n, sizeof(buf) - n, "%s", new);