mirror of
https://github.com/anope/anope.git
synced 2026-06-25 06:56:40 +02:00
Fix removing entries by an alias in chanserv/access and chanserv/xop.
This commit is contained in:
@@ -229,7 +229,12 @@ class CommandCSAccess : public Command
|
||||
{
|
||||
Anope::string mask = params[2];
|
||||
|
||||
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)
|
||||
|
||||
@@ -246,7 +246,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)
|
||||
|
||||
Reference in New Issue
Block a user