summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2013-01-30 09:18:56 +0100
committerDukePyrolator <DukePyrolator@anope.org>2013-01-30 09:18:56 +0100
commitae46cc7f7320dd09de10b44e76340c45cbddd492 (patch)
treeff6a8e3f57cd6ea4ff819ccaff925363c7340fbd
parent6b2aad734ec9a7f125d07bba8826c1548cc2ef48 (diff)
fixed an infinite loop in ns_recover, caused by a very small typo.
-rw-r--r--modules/commands/ns_recover.cpp2
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);