diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index 5e406ced2..488f143c8 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -876,14 +876,13 @@ void do_kill(User *user, const Anope::string &msg) /*************************************************************************/ /*************************************************************************/ -/* Is the given user ban-excepted? */ -bool is_excepted(ChannelInfo *ci, User *user) +bool matches_list(Channel *c, User *user, ChannelModeName mode) { - if (!ci->c || !ModeManager::FindChannelModeByName(CMODE_EXCEPT)) + if (!c || !c->HasMode(mode)) return false; - std::pair<Channel::ModeList::iterator, Channel::ModeList::iterator> modes = ci->c->GetModeList(CMODE_EXCEPT); + std::pair<Channel::ModeList::iterator, Channel::ModeList::iterator> modes = c->GetModeList(mode); for (; modes.first != modes.second; ++modes.first) { Entry e(modes.first->second); |