diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-14 16:19:34 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-14 16:19:34 +0200 |
commit | 63601e946e77f11835cf9cbb87c55fe41e0b12bb (patch) | |
tree | a4bd98d877d85b45697389af5ace84a301be8399 /src/modules | |
parent | fb8cb2114483689c5a52f951e301c31bdd2a60a2 (diff) |
Remove typedef UserMembIter, use Channel::MemberMap::iterator instead
Remove the now unused UserMembList typedef too
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_channames.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_clearchan.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp index 1483d8cd7..1fb5b2a40 100644 --- a/src/modules/m_channames.cpp +++ b/src/modules/m_channames.cpp @@ -83,12 +83,12 @@ class ModuleChannelNames : public Module ServerInstance->Modes->Process(modes, ServerInstance->FakeClient); } Channel::MemberMap& users = c->userlist; - for (UserMembIter j = users.begin(); j != users.end(); ) + for (Channel::MemberMap::iterator j = users.begin(); j != users.end(); ) { if (IS_LOCAL(j->first)) { // KickUser invalidates the iterator - UserMembIter it = j++; + Channel::MemberMap::iterator it = j++; c->KickUser(ServerInstance->FakeClient, it, "Channel name no longer valid"); } else diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp index 6238b7fdf..5fcec36f1 100644 --- a/src/modules/m_clearchan.cpp +++ b/src/modules/m_clearchan.cpp @@ -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()) |