comparison src/protocols/irc/irc.c @ 3028:0e6577e8bd1d

[gaim-migrate @ 3041] IRC Buddy list bugfix. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 10 Mar 2002 00:59:32 +0000
parents 4df759d607f3
children 21895719464c
comparison
equal deleted inserted replaced
3027:c642d0ebcc19 3028:0e6577e8bd1d
349 while (gr) { 349 while (gr) {
350 GSList *m = ((struct group *)gr->data)->members; 350 GSList *m = ((struct group *)gr->data)->members;
351 while (m) { 351 while (m) {
352 struct buddy *b = m->data; 352 struct buddy *b = m->data;
353 char *tmp = g_strdup(b->name); 353 char *tmp = g_strdup(b->name);
354 char *x; 354 char *x, *l;
355 g_strdown(tmp); 355 g_strdown(tmp);
356 x = strstr(id->str->str, tmp); 356 x = strstr(id->str->str, tmp);
357 l = x + strlen(b->name);
358 if (x && (*l != ' ' && *l != 0))
359 x = 0;
357 if (!b->present && x) 360 if (!b->present && x)
358 serv_got_update(gc, b->name, 1, 0, 0, 0, 0, 0); 361 serv_got_update(gc, b->name, 1, 0, 0, 0, 0, 0);
359 else if (b->present && !x) 362 else if (b->present && !x)
360 serv_got_update(gc, b->name, 0, 0, 0, 0, 0, 0); 363 serv_got_update(gc, b->name, 0, 0, 0, 0, 0, 0);
361 g_free(tmp); 364 g_free(tmp);