From dc9e81a6fc58a9ea347ea28d780ccb98d994511d Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 6 Jan 2013 18:38:04 -0500 Subject: Fix deleting access by number --- modules/commands/cs_access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/cs_access.cpp') diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index adf49a037..36a14562e 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -188,7 +188,7 @@ class CommandCSAccess : public Command { Anope::string mask = params[2]; - if (mask.find_first_of("!*@") == Anope::string::npos && !NickAlias::Find(mask)) + if (!isdigit(mask[0]) && mask.find_first_of("!*@") == Anope::string::npos && !NickAlias::Find(mask)) { User *targ = User::Find(mask, true); if (targ != NULL) -- cgit