summaryrefslogtreecommitdiff
path: root/modules/hostserv/add.cpp
diff options
context:
space:
mode:
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());
}