]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_clearchan.cpp
Make all User::IsModeSet() methods const, accept const ModeHandler
[user/henk/code/inspircd.git] / src / modules / m_clearchan.cpp
index e23cd66c245f60cc870022ca10151643eb50abce..4142f81d1709c01864a764b503036966eb964b32 100644 (file)
@@ -94,10 +94,10 @@ class CommandClearChan : public Command
                std::string mask;
                // Now remove all local non-opers from the channel
                Channel::MemberMap& users = chan->userlist;
-               for (UserMembIter i = users.begin(); i != users.end(); )
+               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())
@@ -119,7 +119,7 @@ class CommandClearChan : public Command
                                        mask = ((method[0] == 'Z') ? curr->GetIPString() : "*@" + curr->host);
                                        xline = xlf->Generate(ServerInstance->Time(), 60*60, user->nick, reason, mask);
                                }
-                               catch (ModuleException& ex)
+                               catch (ModuleException&)
                                {
                                        // Nothing, move on to the next user
                                        continue;
@@ -171,7 +171,7 @@ class ModuleClearChan : public Module
                }
 
                const Channel::MemberMap& users = cmd.activechan->GetUsers();
-               for (UserMembCIter i = users.begin(); i != users.end(); ++i)
+               for (Channel::MemberMap::const_iterator i = users.begin(); i != users.end(); ++i)
                {
                        LocalUser* curr = IS_LOCAL(i->first);
                        if (!curr)
@@ -201,7 +201,7 @@ class ModuleClearChan : public Module
                // Hide the KICK from all non-opers
                User* leaving = memb->user;
                const Channel::MemberMap& users = memb->chan->GetUsers();
-               for (UserMembCIter i = users.begin(); i != users.end(); ++i)
+               for (Channel::MemberMap::const_iterator i = users.begin(); i != users.end(); ++i)
                {
                        User* curr = i->first;
                        if ((IS_LOCAL(curr)) && (!curr->IsOper()) && (curr != leaving))