mirror of
https://github.com/anope/anope.git
synced 2026-07-09 23:03:12 +02:00
Fixed zlines to only add the xline host, fixed db_mysql's write function, and prevent adding multiple of the same nick to access lists
This commit is contained in:
@@ -322,6 +322,9 @@ class XOPBase : public Command
|
||||
return;
|
||||
}
|
||||
|
||||
if (mask.find_first_of("!*@") == Anope::string::npos && findnick(mask) == NULL)
|
||||
mask += "!*@*";
|
||||
|
||||
for (unsigned i = 0; i < ci->GetAccessCount(); ++i)
|
||||
{
|
||||
ChanAccess *a = ci->GetAccess(i);
|
||||
@@ -345,9 +348,6 @@ class XOPBase : public Command
|
||||
return;
|
||||
}
|
||||
|
||||
if (mask.find_first_of("!*@") == Anope::string::npos && findnick(mask) == NULL)
|
||||
mask += "!*@*";
|
||||
|
||||
service_reference<AccessProvider> provider("access/xop");
|
||||
if (!provider)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user