summaryrefslogtreecommitdiff
path: root/modules/commands/ns_ghost.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-23 16:56:06 -0500
committerAdam <Adam@anope.org>2012-11-23 16:56:06 -0500
commit36b1166cf6efddbc9a9abc8f00ad13bb0d4e56a9 (patch)
treea5883db9349de07b349647f467abfe05f8a2810e /modules/commands/ns_ghost.cpp
parent0e7bd9f3ba9ff8fe634fcf7d365ea2a984655d83 (diff)
Change the return type of ircdmessage to void now that we don't use it, add an ircd message module event, and a few more fixups
Diffstat (limited to 'modules/commands/ns_ghost.cpp')
-rw-r--r--modules/commands/ns_ghost.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/commands/ns_ghost.cpp b/modules/commands/ns_ghost.cpp
index de85a941f..0f53d849e 100644
--- a/modules/commands/ns_ghost.cpp
+++ b/modules/commands/ns_ghost.cpp
@@ -198,12 +198,11 @@ class NSGhost : public Module
std::map<Anope::string, ChannelStatus>::iterator it = ei->find(c->name);
if (it != ei->end())
{
- ei->erase(it);
-
for (size_t j = CMODE_BEGIN + 1; j < CMODE_END; ++j)
if (it->second.HasFlag(static_cast<ChannelModeName>(j)))
c->SetMode(c->ci->WhoSends(), ModeManager::FindChannelModeByName(static_cast<ChannelModeName>(j)), u->GetUID());
+ ei->erase(it);
if (ei->empty())
u->Shrink("ns_ghost_info");
}