From 788e1a98f01b7bf57211d3965e547c9e1313255b Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Sat, 24 Apr 2021 12:47:27 +0100 Subject: [PATCH] Remove $x's magical powers --- extensions/extb_extgecos.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/extensions/extb_extgecos.c b/extensions/extb_extgecos.c index 7dbf73f1..7d6f9227 100644 --- a/extensions/extb_extgecos.c +++ b/extensions/extb_extgecos.c @@ -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; }