extb_usermode: should use EXTBAN_INVALID if no modestring is provided

This commit is contained in:
William Pitcock 2012-01-22 03:58:32 -06:00
parent 0b18e32cad
commit 11f2e78727

View file

@ -46,7 +46,7 @@ static int eb_usermode(const char *data, struct Client *client_p,
/* $m must have a specified mode */
if (data == NULL)
return EXTBAN_NOMATCH;
return EXTBAN_INVALID;
for (p = data; *p != '\0'; p++)
{