From 339f41aebcad011d53da63b0d681a8353226a868 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 8 Sep 2013 21:53:06 -0400 Subject: 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 --- modules/protocol/unreal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/protocol/unreal.cpp') diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index 17dca20a6..67462432d 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -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); -- cgit