1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

HostServ: Remove vhost when a nick is dropped

This commit is contained in:
Michael
2020-08-15 20:30:29 -04:00
committed by Sadie Powell
parent 52914216f0
commit bf725aa8dc
+9
View File
@@ -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);