From 36b1166cf6efddbc9a9abc8f00ad13bb0d4e56a9 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 23 Nov 2012 16:56:06 -0500 Subject: 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 --- modules/commands/ns_ghost.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/commands') 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::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(j))) c->SetMode(c->ci->WhoSends(), ModeManager::FindChannelModeByName(static_cast(j)), u->GetUID()); + ei->erase(it); if (ei->empty()) u->Shrink("ns_ghost_info"); } -- cgit