summaryrefslogtreecommitdiff
path: root/src/core/ns_help.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-06-27 11:55:39 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-06-27 11:55:39 -0400
commit9269d20a704bc4e67533b15772a7d72ac742c6bf (patch)
tree1e052a4630e6d41b8ffb01c68b7c2613443e4e7b /src/core/ns_help.cpp
parent57caa0b53f53927c72811ffffda8bb527975860f (diff)
The next of a few "CBX OCDing over code style" commits, focusing on src/core/ns_*.
Diffstat (limited to 'src/core/ns_help.cpp')
-rw-r--r--src/core/ns_help.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/ns_help.cpp b/src/core/ns_help.cpp
index b212d5498..423cc5c75 100644
--- a/src/core/ns_help.cpp
+++ b/src/core/ns_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"
@@ -42,7 +41,7 @@ class CommandNSHelp : public Command
void OnSyntaxError(User *u, const ci::string &subcommand)
{
notice_help(Config.s_NickServ, u, NICK_HELP);
- for (CommandMap::const_iterator it = NickServ->Commands.begin(); it != NickServ->Commands.end(); ++it)
+ for (CommandMap::const_iterator it = NickServ->Commands.begin(), it_end = NickServ->Commands.end(); it != it_end; ++it)
it->second->OnServHelp(u);
if (u->Account() && u->Account()->IsServicesOper())
notice_help(Config.s_NickServ, u, NICK_SERVADMIN_HELP);