summaryrefslogtreecommitdiff
path: root/modules/hostserv/add.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hostserv/add.cpp')
-rw-r--r--modules/hostserv/add.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/hostserv/add.cpp b/modules/hostserv/add.cpp
index 240324470..f9388c975 100644
--- a/modules/hostserv/add.cpp
+++ b/modules/hostserv/add.cpp
@@ -51,7 +51,9 @@ class CommandHSAdd : public Command
size_t a = rawhostmask.find('@');
if (a == Anope::string::npos)
+ {
host = rawhostmask;
+ }
else
{
user = rawhostmask.substr(0, a);