summaryrefslogtreecommitdiff
path: root/modules/commands/hs_on.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-06-29 08:58:31 -0400
committerAdam <Adam@anope.org>2015-06-29 08:58:31 -0400
commit8eb46772e6e9244575851ceaa86b39e57a1db060 (patch)
treecdb5a900345c3007ac5d402e407d3610b4e5b1a1 /modules/commands/hs_on.cpp
parentd563aa0da8f779505302b6c3d2b22b0b6e542cee (diff)
Don't allow loading hostserv mods if there can be no hostserv
Diffstat (limited to 'modules/commands/hs_on.cpp')
-rw-r--r--modules/commands/hs_on.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/commands/hs_on.cpp b/modules/commands/hs_on.cpp
index d6897283a..d59206e27 100644
--- a/modules/commands/hs_on.cpp
+++ b/modules/commands/hs_on.cpp
@@ -65,7 +65,8 @@ class HSOn : public Module
HSOn(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
commandhson(this)
{
-
+ if (!IRCD || !IRCD->CanSetVHost)
+ throw ModuleException("Your IRCd does not support vhosts");
}
};