1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 00:06:39 +02:00

Fix deleting access by number

This commit is contained in:
Adam
2013-01-06 18:38:04 -05:00
parent ed719c80e7
commit dc9e81a6fc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -319,7 +319,7 @@ class XOPBase : public Command
const ChanAccess *highest = access.Highest();
bool override = false;
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)