Break! ...no actually, take the break out :)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9578 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-04-22 16:09:03 +00:00
parent b9a3d9e71f
commit 39af36e058

View File

@ -169,6 +169,7 @@ class ModuleTimedBans : public Module
if (ServerInstance->Config->AllowHalfop)
cr->WriteAllExcept(ServerInstance->FakeClient, true, '%', empty, "NOTICE %s :*** Timed ban on %s expired.", cr->name, safei->mask.c_str());
/* Removes the ban item for us, no ::erase() needed */
ServerInstance->PI->SendModeStr(safei->channel, std::string("-b ") + setban[2]);
ServerInstance->SendMode(setban, 3, ServerInstance->FakeClient);
@ -186,8 +187,6 @@ class ModuleTimedBans : public Module
/* Where the hell did our channel go?! */
TimedBanList.erase(safei);
}
// we used to delete the item here, but we dont need to as the servermode above does it for us,
break;
}
}
}