summaryrefslogtreecommitdiff
path: root/modules/commands/hs_off.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_off.cpp
parentd563aa0da8f779505302b6c3d2b22b0b6e542cee (diff)
Don't allow loading hostserv mods if there can be no hostserv
Diffstat (limited to 'modules/commands/hs_off.cpp')
-rw-r--r--modules/commands/hs_off.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/commands/hs_off.cpp b/modules/commands/hs_off.cpp
index 75e6bc966..603b863c1 100644
--- a/modules/commands/hs_off.cpp
+++ b/modules/commands/hs_off.cpp
@@ -58,7 +58,8 @@ class HSOff : public Module
HSOff(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
commandhsoff(this)
{
-
+ if (!IRCD || !IRCD->CanSetVHost)
+ throw ModuleException("Your IRCd does not support vhosts");
}
};