1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 02:16:37 +02:00

Allow assigning service bots via /invite

This commit is contained in:
Adam
2013-04-14 17:39:01 -05:00
parent baabc91ead
commit f08dbced60
14 changed files with 98 additions and 32 deletions
+11
View File
@@ -49,6 +49,17 @@ void Error::Run(MessageSource &source, const std::vector<Anope::string> &params)
Anope::Quitting = true;
}
void Invite::Run(MessageSource &source, const std::vector<Anope::string> &params) 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> &params)
{
User *user = source.GetUser();