1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 14:03:13 +02:00

Update cs_updown.cpp

cs_updown: Make CS DOWN remove all modes, not just one
This commit is contained in:
ShutterQuick
2014-02-07 18:04:16 +01:00
parent 66cc965fd7
commit c0a491cb06
+2 -2
View File
@@ -130,8 +130,8 @@ class CommandCSDown : public Command
{
ChanUserContainer *cu = c->FindUser(u);
if (cu != NULL)
for (size_t i = 0; i < cu->status.Modes().length(); ++i)
c->RemoveMode(NULL, ModeManager::FindChannelModeByChar(cu->status.Modes()[i]), u->GetUID());
for (size_t i = cu->status.Modes().length(); i > 0;)
c->RemoveMode(NULL, ModeManager::FindChannelModeByChar(cu->status.Modes()[--i]), u->GetUID());
}
public: