diff options
author | Adam <Adam@anope.org> | 2015-06-29 08:58:31 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-06-29 08:58:31 -0400 |
commit | 8eb46772e6e9244575851ceaa86b39e57a1db060 (patch) | |
tree | cdb5a900345c3007ac5d402e407d3610b4e5b1a1 /modules/commands/hs_group.cpp | |
parent | d563aa0da8f779505302b6c3d2b22b0b6e542cee (diff) |
Don't allow loading hostserv mods if there can be no hostserv
Diffstat (limited to 'modules/commands/hs_group.cpp')
-rw-r--r-- | modules/commands/hs_group.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/hs_group.cpp b/modules/commands/hs_group.cpp index a238c3f99..232b2bef3 100644 --- a/modules/commands/hs_group.cpp +++ b/modules/commands/hs_group.cpp @@ -86,6 +86,8 @@ class HSGroup : public Module HSGroup(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhsgroup(this) { + if (!IRCD || !IRCD->CanSetVHost) + throw ModuleException("Your IRCd does not support vhosts"); } void OnSetVhost(NickAlias *na) anope_override |