diff options
author | Adam <Adam@anope.org> | 2017-11-19 13:24:48 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-11-19 13:24:48 -0500 |
commit | 3fb9bb5118a5c3c6c916a48feed0e069867f3133 (patch) | |
tree | 16631512dbcff5ec3146d4f60a30e732ab6c64b1 /modules/hostserv/del.cpp | |
parent | d616bf3328eca31cb46b5d54e656b556dd513ed3 (diff) |
hostserv: expand events for newer vhost model
Diffstat (limited to 'modules/hostserv/del.cpp')
-rw-r--r-- | modules/hostserv/del.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hostserv/del.cpp b/modules/hostserv/del.cpp index ba13adaa9..aa34fac01 100644 --- a/modules/hostserv/del.cpp +++ b/modules/hostserv/del.cpp @@ -56,6 +56,7 @@ class CommandHSDel : public Command logger.Admin(source, _("{source} used {command} on {0} to remove vhost {1}"), na->GetAccount()->GetDisplay(), vhost->Mask()); source.Reply(_("Vhost \002{0}\002 for \002{1}\002 has been removed."), vhost->Mask(), na->GetAccount()->GetDisplay()); + EventManager::Get()->Dispatch(&Event::DeleteVhost::OnDeleteVhost, &source, na->GetAccount(), vhost); vhost->Delete(); return; } @@ -69,8 +70,7 @@ class CommandHSDel : public Command logger.Admin(source, _("{source} used {command} on {0}"), na->GetAccount()->GetDisplay()); -#warning "send account" - EventManager::Get()->Dispatch(&Event::DeleteVhost::OnDeleteVhost, na); + EventManager::Get()->Dispatch(&Event::DeleteVhost::OnDeleteAllVhost, &source, na->GetAccount()); for (HostServ::VHost *v : vhosts) v->Delete(); |