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 | |
| 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')
| -rw-r--r-- | modules/commands/cs_access.cpp | 6 | ||||
| -rw-r--r-- | modules/commands/cs_xop.cpp | 6 |
2 files changed, 6 insertions, 6 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; diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp index e886496c1..1ea99541e 100644 --- a/modules/commands/cs_xop.cpp +++ b/modules/commands/cs_xop.cpp @@ -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; |
