170 |
|
if (parc <= server || EmptyString(parv[server])) |
171 |
|
return HUNTED_ISME; |
172 |
|
|
173 |
< |
if (!strcmp(parv[server], me.id) || match(parv[server], me.name)) |
173 |
> |
if (!strcmp(parv[server], me.id) || !match(parv[server], me.name)) |
174 |
|
return HUNTED_ISME; |
175 |
|
|
176 |
|
/* These are to pickup matches that would cause the following |
213 |
|
{ |
214 |
|
target_tmp = ptr->data; |
215 |
|
|
216 |
< |
if (match(parv[server], target_tmp->name)) |
216 |
> |
if (!match(parv[server], target_tmp->name)) |
217 |
|
{ |
218 |
|
if (target_tmp->from == source_p->from && !MyConnect(target_tmp)) |
219 |
|
continue; |
238 |
|
if (IsMe(target_p) || MyClient(target_p)) |
239 |
|
return HUNTED_ISME; |
240 |
|
|
241 |
< |
if (!match(target_p->name, parv[server])) |
241 |
> |
if (match(target_p->name, parv[server])) |
242 |
|
parv[server] = target_p->name; |
243 |
|
|
244 |
|
/* This is a little kludgy but should work... */ |
389 |
|
{ |
390 |
|
conf = ptr->data; |
391 |
|
|
392 |
< |
if (!match(name, conf->name)) |
392 |
> |
if (match(name, conf->name)) |
393 |
|
continue; |
394 |
|
|
395 |
|
error = -3; |
396 |
|
|
397 |
|
/* XXX: Fix me for IPv6 */ |
398 |
|
/* XXX sockhost is the IPv4 ip as a string */ |
399 |
< |
if (match(conf->host, client_p->host) || |
400 |
< |
match(conf->host, client_p->sockhost)) |
399 |
> |
if (!match(conf->host, client_p->host) || |
400 |
> |
!match(conf->host, client_p->sockhost)) |
401 |
|
{ |
402 |
|
error = -2; |
403 |
|
|
1470 |
|
cptr = ptr->data; |
1471 |
|
|
1472 |
|
if (cptr && cptr->name[0]) |
1473 |
< |
if (match(name, cptr->name)) |
1473 |
> |
if (!match(name, cptr->name)) |
1474 |
|
return cptr; |
1475 |
|
} |
1476 |
|
|