diff options
author | Adam <adam@sigterm.info> | 2014-02-07 12:12:52 -0500 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2014-02-07 12:12:52 -0500 |
commit | f43c99c5cc1cb1cf9f33e9b28f78b9f79a2a4023 (patch) | |
tree | ced80ca908bc4add951f8d0236d7a11c7e7e2e18 /modules/commands | |
parent | 66cc965fd736a7785247a6c058c4bfacfe5ea02f (diff) | |
parent | c0a491cb06046eb6892d03c36f9efd0009f0e683 (diff) |
Merge pull request #46 from ShutterQuick/patch-1
Update cs_updown.cpp
Diffstat (limited to 'modules/commands')
-rw-r--r-- | modules/commands/cs_updown.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_updown.cpp b/modules/commands/cs_updown.cpp index 2dae0cc72..b0488de26 100644 --- a/modules/commands/cs_updown.cpp +++ b/modules/commands/cs_updown.cpp @@ -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: |