From 3fb9bb5118a5c3c6c916a48feed0e069867f3133 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 19 Nov 2017 13:24:48 -0500 Subject: hostserv: expand events for newer vhost model --- modules/hostserv/request.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/hostserv/request.cpp') diff --git a/modules/hostserv/request.cpp b/modules/hostserv/request.cpp index 3df0f1e97..d5a3de0ae 100644 --- a/modules/hostserv/request.cpp +++ b/modules/hostserv/request.cpp @@ -19,6 +19,7 @@ #include "module.h" #include "modules/memoserv.h" +#include "modules/hostserv/add.h" class HostRequest : public Serialize::Object { @@ -301,7 +302,7 @@ class CommandHSActivate : public Command vhost->SetCreator(source.GetNick()); vhost->SetCreated(req->GetTime()); - EventManager::Get()->Dispatch(&Event::SetVhost::OnSetVhost, na); + EventManager::Get()->Dispatch(&Event::SetVhost::OnSetVhost, &source, na->GetAccount(), vhost); if (Config->GetModule(this->GetOwner())->Get("memouser") && memoserv) memoserv->Send(source.service->nick, na->GetNick(), _("[auto memo] Your requested vHost has been approved."), true); -- cgit