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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user