diff options
author | Adam <Adam@anope.org> | 2011-01-17 15:46:53 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-01-17 15:46:53 -0500 |
commit | 8975b52cc3087db9504de7ad6e707234cb158a36 (patch) | |
tree | d666c5abe448e5451edbd9c0993a46f28cbc6c04 /src/users.cpp | |
parent | 7acbbbbf5b661fd2d7b42f3e3adaea949f68cbef (diff) |
Added ns_ajoin
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); |