summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xline.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index ea74ba8c7..6b3ba90f4 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -103,7 +103,12 @@ Anope::string XLine::GetHost() const
return this->mask.substr(host_t + 1);
}
else
- return "";
+ {
+ if (real_t != Anope::string::npos)
+ return this->mask.substr(0, real_t);
+ else
+ return this->mask;
+ }
}
Anope::string XLine::GetReal() const