neozeed ircu2.9.32-linux-hacks.diff
This commit is contained in:
@@ -92,7 +92,7 @@ int *count;
|
||||
if (!MyClient(c2ptr)) /* implies mine and a user */
|
||||
continue;
|
||||
if ((!host || !match(host, c2ptr->user->host)) &&
|
||||
mycmp(user, c2ptr->user->username) == 0)
|
||||
strcasecmp(user, c2ptr->user->username) == 0)
|
||||
{
|
||||
(*count)++;
|
||||
res = c2ptr;
|
||||
@@ -135,7 +135,7 @@ char *mask;
|
||||
if (!IsServer(acptr) && !IsMe(acptr))
|
||||
continue;
|
||||
if (!match(mask, acptr->name))
|
||||
break; continue;
|
||||
break;
|
||||
}
|
||||
return acptr;
|
||||
}
|
||||
@@ -310,7 +310,7 @@ struct Message *mptr;
|
||||
if (s)
|
||||
*s++ = '\0';
|
||||
for (; mptr->cmd; mptr++)
|
||||
if (mycmp(mptr->cmd, ch) == 0)
|
||||
if (strcasecmp(mptr->cmd, ch) == 0)
|
||||
break;
|
||||
|
||||
if (!mptr->cmd)
|
||||
@@ -394,8 +394,11 @@ struct Message *mptr;
|
||||
}
|
||||
}
|
||||
para[++i] = NULL;
|
||||
if (mptr == NULL)
|
||||
if (mptr == NULL) {
|
||||
numeric = (*ch - '0') * 100 + (*(ch + 1) - '0') * 10
|
||||
+ (*(ch + 2) - '0');
|
||||
return (do_numeric(numeric, cptr, from, i, para));
|
||||
}
|
||||
mptr->count++;
|
||||
if (!IsRegistered(cptr) && (
|
||||
/* patch to avoid server flooding from unregistered connects : --dl */
|
||||
|
||||
Reference in New Issue
Block a user