summaryrefslogtreecommitdiff
path: root/vchat-user.c
diff options
context:
space:
mode:
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 }