From 599760ac5c011c9ffc1515264ad08ca7dea98b44 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sun, 1 Feb 2004 15:37:21 +0000 Subject: Bell on PM // Match username && username: --- vchat-user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vchat-user.c') diff --git a/vchat-user.c b/vchat-user.c index 4ad9f4f..1e14112 100755 --- a/vchat-user.c +++ b/vchat-user.c @@ -159,11 +159,13 @@ ul_join (unsigned char *name, int channel) user * ul_finduser (unsigned char *name) { user *tmp = nicks; + snprintf( tmpstr, TMPSTRSIZE, "%s:", name); + /* search user */ while (tmp) { /* is it this user? */ - if (!strcmp (name, tmp->nick)) + if (!strcmp (name, tmp->nick) || !strcmp(tmpstr, tmp->nick)) { return tmp; } -- cgit v1.2.3