diff options
author | Adam <Adam@anope.org> | 2013-09-08 21:53:06 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-08 21:53:06 -0400 |
commit | 339f41aebcad011d53da63b0d681a8353226a868 (patch) | |
tree | b4abd90375d05bc77322640236c149ec380b1866 /src/xline.cpp | |
parent | 55e4ef9d3a5dc7e3b616e1369aac01ea1c76780d (diff) |
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
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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 |