From 8eb46772e6e9244575851ceaa86b39e57a1db060 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 29 Jun 2015 08:58:31 -0400 Subject: Don't allow loading hostserv mods if there can be no hostserv --- modules/commands/hs_set.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/commands/hs_set.cpp') diff --git a/modules/commands/hs_set.cpp b/modules/commands/hs_set.cpp index 2940227aa..72e331e88 100644 --- a/modules/commands/hs_set.cpp +++ b/modules/commands/hs_set.cpp @@ -221,7 +221,8 @@ class HSSet : public Module public: HSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhsset(this), commandhssetall(this) { - + if (!IRCD || !IRCD->CanSetVHost) + throw ModuleException("Your IRCd does not support vhosts"); } }; -- cgit