summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/commands/cs_access.cpp2
-rw-r--r--modules/commands/cs_xop.cpp2
2 files changed, 2 insertions, 2 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)
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index 77f6cb5a0..03ee94d7f 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -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)