1
0
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:
Adam
2011-08-20 00:50:26 -04:00
parent fd999b996f
commit fa3b74a5b4
8 changed files with 20 additions and 19 deletions
+3 -3
View File
@@ -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;