mirror of
https://github.com/anope/anope.git
synced 2026-07-02 18:53:12 +02:00
Moved some global functions to be member functions and misc cleanup
This commit is contained in:
@@ -192,10 +192,17 @@ class CommandCSAKick : public Command
|
||||
}
|
||||
|
||||
/* Check excepts BEFORE we get this far */
|
||||
if (ModeManager::FindChannelModeByName(CMODE_EXCEPT) && is_excepted_mask(ci, mask))
|
||||
if (ci->c)
|
||||
{
|
||||
source.Reply(_(CHAN_EXCEPTED), mask.c_str(), ci->name.c_str());
|
||||
return;
|
||||
std::pair<Channel::ModeList::iterator, Channel::ModeList::iterator> modes = ci->c->GetModeList(CMODE_EXCEPT);
|
||||
for (; modes.first != modes.second; ++modes.first)
|
||||
{
|
||||
if (Anope::Match(modes.first->second, mask))
|
||||
{
|
||||
source.Reply(_(CHAN_EXCEPTED), mask.c_str(), ci->name.c_str());
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check whether target nick has equal/higher access
|
||||
|
||||
Reference in New Issue
Block a user