Remove $x's magical powers

This commit is contained in:
Ed Kellett 2021-04-24 12:47:27 +01:00
parent dfeba65563
commit 788e1a98f0

View file

@ -35,7 +35,6 @@ static int eb_extended(const char *data, struct Client *client_p,
struct Channel *chptr, long mode_type)
{
char buf[BUFSIZE];
int ret;
(void)chptr;
@ -45,15 +44,5 @@ static int eb_extended(const char *data, struct Client *client_p,
snprintf(buf, BUFSIZE, "%s!%s@%s#%s",
client_p->name, client_p->username, client_p->host, client_p->info);
ret = match(data, buf) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
if (ret == EXTBAN_NOMATCH && IsDynSpoof(client_p))
{
snprintf(buf, BUFSIZE, "%s!%s@%s#%s",
client_p->name, client_p->username, client_p->orighost, client_p->info);
ret = match(data, buf) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
}
return ret;
return match(data, buf) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
}