diff options
-rw-r--r-- | modules/pseudoclients/hostserv.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/pseudoclients/hostserv.cpp b/modules/pseudoclients/hostserv.cpp index c2beb5c65..c4f7c533a 100644 --- a/modules/pseudoclients/hostserv.cpp +++ b/modules/pseudoclients/hostserv.cpp @@ -66,6 +66,15 @@ class HostServCore : public Module } } + void OnNickDrop(CommandSource &source, NickAlias *na) anope_override + { + if (na->HasVhost()) + { + FOREACH_MOD(OnDeleteVhost, (na)); + na->RemoveVhost(); + } + } + void OnNickUpdate(User *u) anope_override { this->OnUserLogin(u); |