From 1e20877e2f529b61b205a0b1202c32962ee47938 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Mon, 21 Jun 2010 23:14:28 -0400 Subject: The next of a few "CBX OCDing over code style" commits, focusing on src/core/bs_* and src/core/cs_*. --- src/core/cs_help.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/core/cs_help.cpp') 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: -- cgit