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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user