diff options
author | Adam <Adam@anope.org> | 2013-08-25 02:59:54 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-25 04:48:43 -0400 |
commit | 847cceaba350444510b37f685d51fdfc584b1fd2 (patch) | |
tree | fc43ca0715569f88baa342a6a5b6da27032f2b64 /modules/commands/os_mode.cpp | |
parent | 09046e3c993cfca2798c11daf294f8c52bb3a785 (diff) |
Create persistent channels on startup, which used to work and got lost somewhere
Fix some oddities with using persistent channels with no botserv
Send list modes to uplink when bursting
Fix issues with persist + keepmodes
Fix /os modes clear all not clearing all status modes
Fix operwall on ratbox/plexus
Dont apply mlock in SetCorrectModes since that just recursively calls itself unncessarially
Change command logging to show the command name and not the service name
Diffstat (limited to 'modules/commands/os_mode.cpp')
-rw-r--r-- | modules/commands/os_mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_mode.cpp b/modules/commands/os_mode.cpp index 7057ead72..13f3f44d7 100644 --- a/modules/commands/os_mode.cpp +++ b/modules/commands/os_mode.cpp @@ -48,8 +48,8 @@ class CommandOSMode : public Command if (uc->user->HasMode("OPER")) continue; - for (size_t i = 0; i < uc->status.Modes().length(); ++i) - c->RemoveMode(c->ci->WhoSends(), ModeManager::FindChannelModeByChar(uc->status.Modes()[i]), uc->user->GetUID(), false); + for (size_t i = uc->status.Modes().length(); i > 0; --i) + c->RemoveMode(c->ci->WhoSends(), ModeManager::FindChannelModeByChar(uc->status.Modes()[i - 1]), uc->user->GetUID(), false); } source.Reply(_("All modes cleared on %s."), c->name.c_str()); |