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_xop.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_xop.cpp')
-rw-r--r-- | modules/commands/cs_xop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |