0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 00:10:59 +01:00

Deny $o extbans with data, to be better compatible with future meanings of it.

This commit is contained in:
Jilles Tjoelker 2007-12-18 23:00:42 +01:00
parent aee6f89036
commit adb3f9d000

View file

@ -35,8 +35,10 @@ static int eb_oper(const char *data, struct Client *client_p,
{ {
(void)chptr; (void)chptr;
(void)data;
(void)mode_type; (void)mode_type;
/* perhaps use data somehow? (opernick/flags?) */ /* 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; return IsOper(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
} }