diff options
Diffstat (limited to 'src/modules/m_channames.cpp')
-rw-r--r-- | src/modules/m_channames.cpp | 4 |
1 files changed, 2 insertions, 2 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 |