1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 23:03:12 +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
@@ -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;