diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-26 01:38:19 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-26 01:38:19 -0400 |
commit | 6dc3af5db41ecb24669b259c776c51964539d531 (patch) | |
tree | e710d022742ad2bf0723c5806afd6a3cc091ba62 /src/core/ms_help.cpp | |
parent | e447933c02eac8013f84cb00751a8e1411ddb1b6 (diff) |
The next of a few "CBX OCDing over code style" commits, focusing on src/core/hs_* and src/core/ms_*, plus some tiny fallout caused by changing the FOREACH_* macros.
Diffstat (limited to 'src/core/ms_help.cpp')
-rw-r--r-- | src/core/ms_help.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ms_help.cpp b/src/core/ms_help.cpp index 2aa837d64..9a982e7b5 100644 --- a/src/core/ms_help.cpp +++ b/src/core/ms_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" @@ -31,7 +30,7 @@ class CommandMSHelp : public Command void OnSyntaxError(User *u, const ci::string &subcommand) { notice_help(Config.s_MemoServ, u, MEMO_HELP_HEADER); - for (CommandMap::const_iterator it = NickServ->Commands.begin(); it != NickServ->Commands.end(); ++it) + for (CommandMap::const_iterator it = MemoServ->Commands.begin(), it_end = MemoServ->Commands.end(); it != it_end; ++it) it->second->OnServHelp(u); notice_help(Config.s_MemoServ, u, MEMO_HELP_FOOTER, Config.s_ChanServ); } @@ -45,6 +44,7 @@ class MSHelp : public Module this->SetAuthor("Anope"); this->SetVersion(VERSION_STRING); this->SetType(CORE); + this->AddCommand(MemoServ, new CommandMSHelp()); } }; |