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 --- src/xline.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/xline.cpp b/src/xline.cpp index ea7fc1e73..554632a38 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -126,9 +126,7 @@ Anope::string XLine::GetReason() const bool XLine::HasNickOrReal() const { - bool r = this->GetNick().find_first_not_of("?*") != Anope::string::npos; - r = r || this->GetReal().find_first_not_of("?*") != Anope::string::npos; - return r; + return !this->GetNick().empty() || !this->GetReal().empty(); } bool XLine::IsRegex() const -- cgit