char userhost[USERLEN + HOSTLEN + 3];
char userip[USERLEN + HOSTLEN + 3];
int i;
- int nickmatch;
+ int nickmatch=0;
/* sockhost OR hostip must match our host field */
{
if (aoper->legal == -1)
continue;
+ if(!mycmp(name, aoper->nick))
+ nickmatch=1;
+ else
+ continue;
for(i = 0; aoper->hosts[i]; i++)
{
- if(!mycmp(name, aoper->nick))
- nickmatch=1;
if(nickmatch && (!match(aoper->hosts[i], userhost)
|| !match(aoper->hosts[i], userip)))
return aoper;