diff options
author | satmd <satmd@lain.at> | 2014-06-01 17:53:31 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-07 13:12:04 +0200 |
commit | 8f7cdd5b61112802973470e74a87da52ee064920 (patch) | |
tree | 266224f09579a1a527a12dfc9e11856721f7ca07 /src/commands | |
parent | 258a481bface1b98f93699d292805c11f0e6d898 (diff) |
Fix harmless loop off-by-ones found by Moonlightning
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index 23143442a..9399b7bea 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -348,7 +348,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results) tag->init(); std::string umodes; std::string cmodes; - for(char c='A'; c < 'z'; c++) + for(char c='A'; c <= 'z'; c++) { ModeHandler* mh = ServerInstance->Modes->FindMode(c, MODETYPE_USER); if (mh && mh->NeedsOper() && tag->AllowedUserModes[c - 'A']) |