diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2013-01-30 09:18:56 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2013-01-30 09:18:56 +0100 |
commit | ae46cc7f7320dd09de10b44e76340c45cbddd492 (patch) | |
tree | ff6a8e3f57cd6ea4ff819ccaff925363c7340fbd | |
parent | 6b2aad734ec9a7f125d07bba8826c1548cc2ef48 (diff) |
fixed an infinite loop in ns_recover, caused by a very small typo.
-rw-r--r-- | modules/commands/ns_recover.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_recover.cpp b/modules/commands/ns_recover.cpp index 184d88588..33a97646c 100644 --- a/modules/commands/ns_recover.cpp +++ b/modules/commands/ns_recover.cpp @@ -265,7 +265,7 @@ class NSRecover : public Module std::map<Anope::string, ChannelStatus>::iterator it = ei->find(c->name); if (it != ei->end()) { - for (std::set<Anope::string>::iterator it2 = it->second.modes.begin(), it2_end = it->second.modes.end(); it2 != it2_end; ++it) + for (std::set<Anope::string>::iterator it2 = it->second.modes.begin(), it2_end = it->second.modes.end(); it2 != it2_end; ++it2) c->SetMode(c->ci->WhoSends(), ModeManager::FindChannelModeByName(*it2), u->GetUID()); ei->erase(it); |