Mercurial > pidgin
diff src/protocols/irc/irc.c @ 2310:b2db2a76dcec
[gaim-migrate @ 2320]
only notify on change
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 19 Sep 2001 07:26:37 +0000 |
parents | 0371b905baef |
children | 766603034af8 |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Wed Sep 19 06:09:15 2001 +0000 +++ b/src/protocols/irc/irc.c Wed Sep 19 07:26:37 2001 +0000 @@ -344,10 +344,12 @@ while (m) { struct buddy *b = m->data; char *tmp = g_strdup(b->name); + char *x; g_strdown(tmp); - if (strstr(id->str->str, tmp)) + x = strstr(id->str->str, tmp); + if (!b->present && x) serv_got_update(gc, b->name, 1, 0, 0, 0, 0, 0); - else + else if (b->present && !x) serv_got_update(gc, b->name, 0, 0, 0, 0, 0, 0); g_free(tmp); m = m->next;