1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 14:06:38 +02:00

Added ns_ajoin

This commit is contained in:
Adam
2011-01-17 15:46:53 -05:00
parent 7acbbbbf5b
commit 8975b52cc3
14 changed files with 293 additions and 15 deletions
+3 -4
View File
@@ -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);