From adb3f9d000d3938304d82e4dbb6a0f51d34bd3d5 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 18 Dec 2007 23:00:42 +0100 Subject: [PATCH] Deny $o extbans with data, to be better compatible with future meanings of it. --- extensions/extb_oper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/extb_oper.c b/extensions/extb_oper.c index e34d022..ff859aa 100644 --- a/extensions/extb_oper.c +++ b/extensions/extb_oper.c @@ -35,8 +35,10 @@ static int eb_oper(const char *data, struct Client *client_p, { (void)chptr; - (void)data; (void)mode_type; /* perhaps use data somehow? (opernick/flags?) */ + /* so deny any bans with data for now */ + if (data != NULL) + return EXTBAN_INVALID; return IsOper(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH; }