summaryrefslogtreecommitdiff
path: root/modules/hostserv/request.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/request.cpp
parentd616bf3328eca31cb46b5d54e656b556dd513ed3 (diff)
hostserv: expand events for newer vhost model
Diffstat (limited to 'modules/hostserv/request.cpp')
-rw-r--r--modules/hostserv/request.cpp3
1 files changed, 2 insertions, 1 deletions
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<bool>("memouser") && memoserv)
memoserv->Send(source.service->nick, na->GetNick(), _("[auto memo] Your requested vHost has been approved."), true);