1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 02:13:12 +02:00

Fix allowing duplicate entries on the snline list

Have proto mods recognize cidr ranges as zlineable IPs
Remove operserv/global from global.conf because its dumb
Fix example config ~botserv/set example to work as expected
This commit is contained in:
Adam
2013-09-08 21:53:06 -04:00
parent 55e4ef9d3a
commit 339f41aebc
8 changed files with 32 additions and 24 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ class UnrealIRCdProto : public IRCDProto
/* ZLine if we can instead */
if (x->GetUser() == "*")
{
sockaddrs a(x->GetHost());
cidr a(x->GetHost());
if (a.valid())
{
IRCD->SendSZLineDel(x);
@@ -111,7 +111,7 @@ class UnrealIRCdProto : public IRCDProto
/* ZLine if we can instead */
if (x->GetUser() == "*")
{
sockaddrs a(x->GetHost());
cidr a(x->GetHost());
if (a.valid())
{
IRCD->SendSZLine(u, x);