]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
cmd_invite Fire the OnUserInvite event before announcing the invite
authorAttila Molnar <attilamolnar@hush.com>
Sun, 6 Dec 2015 10:20:45 +0000 (11:20 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sun, 6 Dec 2015 10:20:45 +0000 (11:20 +0100)
src/coremods/core_channel/cmd_invite.cpp

index 8a906f0522614194f78b120bfe36be32130cf827..55ed33f7f76ec254695fa67ad7daf3db67f5de68 100644 (file)
@@ -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))
        {