diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/messages.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/messages.cpp b/src/messages.cpp index 178d376c3..c9ffd3c59 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -49,6 +49,17 @@ void Error::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) Anope::Quitting = true; } +void Invite::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override +{ + User *targ = User::Find(params[0]); + Channel *c = Channel::Find(params[1]); + + if (!targ || targ->server != Me || !c || c->FindUser(targ)) + return; + + FOREACH_MOD(I_OnInvite, OnInvite(source.GetUser(), c, targ)); +} + void Join::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) { User *user = source.GetUser(); |