diff options
Diffstat (limited to 'modules/commands/hs_off.cpp')
-rw-r--r-- | modules/commands/hs_off.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/hs_off.cpp b/modules/commands/hs_off.cpp index 96d5fccca..603b863c1 100644 --- a/modules/commands/hs_off.cpp +++ b/modules/commands/hs_off.cpp @@ -29,7 +29,9 @@ class CommandHSOff : public Command source.Reply(HOST_NOT_ASSIGNED); else { + u->vhost.clear(); IRCD->SendVhostDel(u); + u->UpdateHost(); Log(LOG_COMMAND, source, this) << "to disable their vhost"; source.Reply(_("Your vhost was removed and the normal cloaking restored.")); } @@ -56,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"); } }; |