diff options
author | Sadie Powell <sadie@witchery.services> | 2023-11-16 19:33:51 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-11-16 19:34:37 +0000 |
commit | 46209895e3f46f183a293fe26e26bdfdc2423e8d (patch) | |
tree | 92d920eda88107c25d368050df972da7005c9354 /modules/commands/cs_xop.cpp | |
parent | b28180d680f974b7d3cf72667681b8cda6a39b0a (diff) | |
parent | ba163027bd9d62d3ae22bc1f8eb8cbe8bc478bf7 (diff) |
Merge branch '2.0' into 2.1.
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r-- | modules/commands/cs_xop.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp index 5bd9de696..69f998740 100644 --- a/modules/commands/cs_xop.cpp +++ b/modules/commands/cs_xop.cpp @@ -251,7 +251,12 @@ class CommandCSXOP : public Command const ChanAccess *highest = access.Highest(); bool override = false; - if (!isdigit(mask[0]) && mask.find_first_of("#!*@") == Anope::string::npos && !NickAlias::Find(mask)) + const NickAlias *na = NickAlias::Find(mask); + if (na && na->nc) + { + mask = na->nc->display; + } + else if (!isdigit(mask[0]) && mask.find_first_of("#!*@") == Anope::string::npos) { User *targ = User::Find(mask, true); if (targ != NULL) |