summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp4
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