diff options
author | Michael <michaelhazell@hotmail.com> | 2020-08-15 20:30:29 -0400 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-09-28 12:15:48 +0100 |
commit | bf725aa8dc26d479e3e586433e57c2af98f930b2 (patch) | |
tree | aa13239ffbcfe9c824adfac926492f1386437325 | |
parent | 52914216f08fd9239a1a66ab85921f7549384439 (diff) |
HostServ: Remove vhost when a nick is dropped
-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); |