1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 19:23:13 +02:00

Fix bug #1040, patch from Adam, CS INVITE not displays messages for successful invites and failed invite due to being in the channel already.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2172 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-03-17 02:55:46 +00:00
parent adca908bce
commit 0892ef1361
14 changed files with 60 additions and 2 deletions
+7 -2
View File
@@ -64,8 +64,13 @@ class CommandCSInvite : public Command
return MOD_CONT;
}
ircdproto->SendInvite(whosends(ci), chan, u->nick);
// XXX: maybe send a message about it succeeding.
if (is_on_chan(c, u))
notice_lang(s_ChanServ, u, CHAN_INVITE_ALREADY_IN, c->name);
else
{
ircdproto->SendInvite(whosends(ci), chan, u->nick);
notice_lang(s_ChanServ, u, CHAN_INVITE_SUCCESS, c->name);
}
return MOD_CONT;
}