diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-21 23:14:28 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-21 23:14:28 -0400 |
commit | 1e20877e2f529b61b205a0b1202c32962ee47938 (patch) | |
tree | 85e4655edf6071d41391362b5d9fcdd0589d63c8 /src/core/cs_help.cpp | |
parent | fb16ce72a0b5a3ce336e003327c8d1740f4fdb98 (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/cs_help.cpp')
-rw-r--r-- | src/core/cs_help.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core/cs_help.cpp b/src/core/cs_help.cpp index 3fe704349..e7c352644 100644 --- a/src/core/cs_help.cpp +++ b/src/core/cs_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" @@ -32,18 +31,14 @@ class CommandCSHelp : public Command int i; notice_help(Config.s_ChanServ, u, CHAN_HELP_LEVELS_DESC); if (!levelinfo_maxwidth) - { - for (i = 0; levelinfo[i].what >= 0; i++) + for (i = 0; levelinfo[i].what >= 0; ++i) { int len = strlen(levelinfo[i].name); if (len > levelinfo_maxwidth) levelinfo_maxwidth = len; } - } - for (i = 0; levelinfo[i].what >= 0; i++) - { + for (i = 0; levelinfo[i].what >= 0; ++i) notice_help(Config.s_ChanServ, u, CHAN_HELP_LEVELS_DESC_FORMAT, levelinfo_maxwidth, levelinfo[i].name, getstring(u, levelinfo[i].desc)); - } } else mod_help_cmd(ChanServ, u, cmd.c_str()); @@ -63,7 +58,6 @@ class CommandCSHelp : public Command } }; - class CSHelp : public Module { public: |