diff options
author | Adam <Adam@anope.org> | 2013-01-06 18:38:04 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-06 18:38:04 -0500 |
commit | dc9e81a6fc58a9ea347ea28d780ccb98d994511d (patch) | |
tree | 8332acc8582b084d9cbfc0e1259963245766558b /modules/commands/cs_access.cpp | |
parent | ed719c80e75f36475626233207a530de2659a063 (diff) |
Fix deleting access by number
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r-- | modules/commands/cs_access.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |