summaryrefslogtreecommitdiff
path: root/src/core/cs_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_help.cpp')
-rw-r--r--src/core/cs_help.cpp12
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: