From fa3b74a5b49ca7a2c42387bb7b5aa24e09c369d6 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 20 Aug 2011 00:50:26 -0400 Subject: 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 --- modules/commands/cs_access.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/commands/cs_access.cpp') 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 provider("access/access"); if (!provider) return; -- cgit