diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-12-06 11:20:45 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-12-06 11:20:45 +0100 |
commit | f307c873e00a11de74bea348fff6bc29b08768d9 (patch) | |
tree | 48348409fe0f691cb9dd46ff8715ee140908bd74 /src | |
parent | 81215de4f00d0044f1dbe0d1c81d1b7081e5405d (diff) |
cmd_invite Fire the OnUserInvite event before announcing the invite
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_channel/cmd_invite.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<std::string>& 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)) { |