X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_clearchan.cpp;h=5fcec36f1777d9567a7dc8d9b9d2a41fe97d665d;hb=4bb972550e79292c5571714103780d873f5e82aa;hp=d7dceaf95c43018e4124ee97381038cce6303457;hpb=b6da8d9e22a8b03ae13339ab8db3305797cba295;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp index d7dceaf95..5fcec36f1 100644 --- a/src/modules/m_clearchan.cpp +++ b/src/modules/m_clearchan.cpp @@ -93,11 +93,11 @@ class CommandClearChan : public Command std::string mask; // Now remove all local non-opers from the channel - UserMembList& users = chan->userlist; - for (UserMembIter i = users.begin(); i != users.end(); ) + Channel::MemberMap& users = chan->userlist; + for (Channel::MemberMap::iterator i = users.begin(); i != users.end(); ) { User* curr = i->first; - const UserMembIter currit = i; + const Channel::MemberMap::iterator currit = i; ++i; if (!IS_LOCAL(curr) || curr->IsOper()) @@ -170,8 +170,8 @@ class ModuleClearChan : public Module } } - const UserMembList* users = cmd.activechan->GetUsers(); - for (UserMembCIter i = users->begin(); i != users->end(); ++i) + const Channel::MemberMap& users = cmd.activechan->GetUsers(); + for (Channel::MemberMap::const_iterator i = users.begin(); i != users.end(); ++i) { LocalUser* curr = IS_LOCAL(i->first); if (!curr) @@ -200,8 +200,8 @@ class ModuleClearChan : public Module { // Hide the KICK from all non-opers User* leaving = memb->user; - const UserMembList* users = memb->chan->GetUsers(); - for (UserMembCIter i = users->begin(); i != users->end(); ++i) + const Channel::MemberMap& users = memb->chan->GetUsers(); + for (Channel::MemberMap::const_iterator i = users.begin(); i != users.end(); ++i) { User* curr = i->first; if ((IS_LOCAL(curr)) && (!curr->IsOper()) && (curr != leaving))