summaryrefslogtreecommitdiff
path: root/vchat-user.c
diff options
context:
space:
mode:
authorerdgeist <>2004-02-01 15:37:21 +0000
committererdgeist <>2004-02-01 15:37:21 +0000
commit599760ac5c011c9ffc1515264ad08ca7dea98b44 (patch)
treeb92116102e8ff97f6dc1affee6a5a1e8ecf4e200 /vchat-user.c
parent00c4316e69b9a61a7fe8eb7d06247d491055d10e (diff)
Bell on PM // Match username && username:
Diffstat (limited to 'vchat-user.c')
-rwxr-xr-xvchat-user.c4
1 files changed, 3 insertions, 1 deletions
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)
159user * 159user *
160ul_finduser (unsigned char *name) { 160ul_finduser (unsigned char *name) {
161 user *tmp = nicks; 161 user *tmp = nicks;
162 snprintf( tmpstr, TMPSTRSIZE, "%s:", name);
163
162 /* search user */ 164 /* search user */
163 while (tmp) 165 while (tmp)
164 { 166 {
165 /* is it this user? */ 167 /* is it this user? */
166 if (!strcmp (name, tmp->nick)) 168 if (!strcmp (name, tmp->nick) || !strcmp(tmpstr, tmp->nick))
167 { 169 {
168 return tmp; 170 return tmp;
169 } 171 }