]> 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 6238b7fdf4e1e5cc8b582989300269f5eb931e54..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;