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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user