From f307c873e00a11de74bea348fff6bc29b08768d9 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 6 Dec 2015 11:20:45 +0100 Subject: cmd_invite Fire the OnUserInvite event before announcing the invite --- src/coremods/core_channel/cmd_invite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/coremods/core_channel/cmd_invite.cpp b/src/coremods/core_channel/cmd_invite.cpp index 8a906f052..55ed33f7f 100644 --- a/src/coremods/core_channel/cmd_invite.cpp +++ b/src/coremods/core_channel/cmd_invite.cpp @@ -141,9 +141,10 @@ CmdResult CommandInvite::Handle (const std::vector& parameters, Use } } + FOREACH_MOD(OnUserInvite, (user, u, c, timeout)); + if (ServerInstance->Config->AnnounceInvites != ServerConfig::INVITE_ANNOUNCE_NONE) c->WriteAllExceptSender(user, true, prefix, "NOTICE %s :*** %s invited %s into the channel", c->name.c_str(), user->nick.c_str(), u->nick.c_str()); - FOREACH_MOD(OnUserInvite, (user,u,c,timeout)); } else if (IS_LOCAL(user)) { -- cgit v1.3.1-10-gc9f91