summaryrefslogtreecommitdiff
path: root/modules/commands/hs_list.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_list.cpp
parentd563aa0da8f779505302b6c3d2b22b0b6e542cee (diff)
Don't allow loading hostserv mods if there can be no hostserv
Diffstat (limited to 'modules/commands/hs_list.cpp')
-rw-r--r--modules/commands/hs_list.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/hs_list.cpp b/modules/commands/hs_list.cpp
index cbdbb25ae..db63c5cd4 100644
--- a/modules/commands/hs_list.cpp
+++ b/modules/commands/hs_list.cpp
@@ -152,6 +152,8 @@ class HSList : public Module
HSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
commandhslist(this)
{
+ if (!IRCD || !IRCD->CanSetVHost)
+ throw ModuleException("Your IRCd does not support vhosts");
}
};