summaryrefslogtreecommitdiff
path: root/modules/hostserv/add.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-11-19 13:24:48 -0500
committerAdam <Adam@anope.org>2017-11-19 13:24:48 -0500
commit3fb9bb5118a5c3c6c916a48feed0e069867f3133 (patch)
tree16631512dbcff5ec3146d4f60a30e732ab6c64b1 /modules/hostserv/add.cpp
parentd616bf3328eca31cb46b5d54e656b556dd513ed3 (diff)
hostserv: expand events for newer vhost model
Diffstat (limited to 'modules/hostserv/add.cpp')
-rw-r--r--modules/hostserv/add.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hostserv/add.cpp b/modules/hostserv/add.cpp
index 59eed187b..9ad20c44b 100644
--- a/modules/hostserv/add.cpp
+++ b/modules/hostserv/add.cpp
@@ -18,6 +18,7 @@
*/
#include "module.h"
+#include "modules/hostserv/add.h"
class CommandHSAdd : public Command
{
@@ -116,8 +117,7 @@ class CommandHSAdd : public Command
vhost->SetCreator(source.GetNick());
vhost->SetCreated(Anope::CurTime);
-#warning "change event to broadcast account"
- EventManager::Get()->Dispatch(&Event::SetVhost::OnSetVhost, na);
+ EventManager::Get()->Dispatch(&Event::SetVhost::OnSetVhost, &source, na->GetAccount(), vhost);
source.Reply(_("Vhost \002{0}\002 added to \002{1}\002."), mask, na->GetAccount()->GetDisplay());
}