changeset 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 a87ca0aa1840
children 019832e79d9f
files src/protocols/irc/irc.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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;