diff options
author | Adam <Adam@anope.org> | 2011-08-20 00:50:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-20 00:50:26 -0400 |
commit | fa3b74a5b49ca7a2c42387bb7b5aa24e09c369d6 (patch) | |
tree | 26fc63833f93e915065ddeaab9c85968e5ffcfb4 /modules/commands/cs_access.cpp | |
parent | fd999b996fe4c76ee10016dbcad316365d1b7988 (diff) |
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
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r-- | modules/commands/cs_access.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index af210ce17..d269b1499 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -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; |