mirror of
https://github.com/anope/anope.git
synced 2026-07-02 15:53:13 +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:
@@ -320,6 +320,9 @@ class CommandCSAccess : public Command
|
||||
|
||||
bool override = !ci->AccessFor(u).HasPriv(CA_ACCESS_CHANGE) || level >= u_level;
|
||||
|
||||
if (mask.find_first_of("!*@") == Anope::string::npos && findnick(mask) == NULL)
|
||||
mask += "!*@*";
|
||||
|
||||
for (unsigned i = ci->GetAccessCount(); i > 0; --i)
|
||||
{
|
||||
ChanAccess *access = ci->GetAccess(i - 1);
|
||||
@@ -342,9 +345,6 @@ class CommandCSAccess : public Command
|
||||
return;
|
||||
}
|
||||
|
||||
if (mask.find_first_of("!*@") == Anope::string::npos && findnick(mask) == NULL)
|
||||
mask += "!*@*";
|
||||
|
||||
service_reference<AccessProvider> provider("access/access");
|
||||
if (!provider)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user