summaryrefslogtreecommitdiff
path: root/src/core/bs_help.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-06-21 23:14:28 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-06-21 23:14:28 -0400
commit1e20877e2f529b61b205a0b1202c32962ee47938 (patch)
tree85e4655edf6071d41391362b5d9fcdd0589d63c8 /src/core/bs_help.cpp
parentfb16ce72a0b5a3ce336e003327c8d1740f4fdb98 (diff)
The next of a few "CBX OCDing over code style" commits, focusing on src/core/bs_* and src/core/cs_*.
Diffstat (limited to 'src/core/bs_help.cpp')
-rw-r--r--src/core/bs_help.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/bs_help.cpp b/src/core/bs_help.cpp
index 80070c138..3842b8910 100644
--- a/src/core/bs_help.cpp
+++ b/src/core/bs_help.cpp
@@ -7,9 +7,8 @@
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
- *
*/
+
/*************************************************************************/
#include "module.h"
@@ -33,7 +32,7 @@ class CommandBSHelp : public Command
{
// Abuse syntax error to display general list help.
notice_help(Config.s_BotServ, u, BOT_HELP);
- for (CommandMap::const_iterator it = BotServ->Commands.begin(); it != BotServ->Commands.end(); ++it)
+ for (CommandMap::const_iterator it = BotServ->Commands.begin(), it_end = BotServ->Commands.end(); it != it_end; ++it)
it->second->OnServHelp(u);
notice_help(Config.s_BotServ, u, BOT_HELP_FOOTER, Config.BSMinUsers);
}
@@ -51,6 +50,4 @@ class BSHelp : public Module
}
};
-
-
MODULE_INIT(BSHelp)