changeset 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 c642d0ebcc19
children 21895719464c
files src/protocols/irc/irc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Sat Mar 09 19:56:26 2002 +0000
+++ b/src/protocols/irc/irc.c	Sun Mar 10 00:59:32 2002 +0000
@@ -351,9 +351,12 @@
 		while (m) {
 			struct buddy *b = m->data;
 			char *tmp = g_strdup(b->name);
-			char *x;
+			char *x, *l;
 			g_strdown(tmp);
 			x = strstr(id->str->str, tmp);
+			l = x + strlen(b->name);
+			if (x && (*l != ' ' && *l != 0))
+				x = 0;
 			if (!b->present && x)
 				serv_got_update(gc, b->name, 1, 0, 0, 0, 0, 0);
 			else if (b->present && !x)