summaryrefslogtreecommitdiff
path: root/modules/commands/os_set.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-09-14 14:40:17 +0200
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commit4f820a7d41dbdf83b27005dcfb02507206708d6b (patch)
treedf34793df95dff47106a84c55980354cf02b05b4 /modules/commands/os_set.cpp
parent5f7127dd92ec9b86b64ea0bbc385e5c06be77fff (diff)
Fix typos, remove dead language defines.
os_set: Add missing debug text in help output.
Diffstat (limited to 'modules/commands/os_set.cpp')
-rw-r--r--modules/commands/os_set.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/modules/commands/os_set.cpp b/modules/commands/os_set.cpp
index b51745aa7..8b402ee69 100644
--- a/modules/commands/os_set.cpp
+++ b/modules/commands/os_set.cpp
@@ -178,12 +178,12 @@ class CommandOSSet : public Command
return this->DoList(source);
else if (option.equals_ci("READONLY"))
return this->DoSetReadOnly(source, params);
- else if (option.equals_ci("SUPERADMIN"))
- return this->DoSetSuperAdmin(source, params);
else if (option.equals_ci("DEBUG"))
return this->DoSetDebug(source, params);
else if (option.equals_ci("NOEXPIRE"))
return this->DoSetNoExpire(source, params);
+ else if (option.equals_ci("SUPERADMIN"))
+ return this->DoSetSuperAdmin(source, params);
else
this->OnSyntaxError(source, "");
@@ -205,8 +205,9 @@ class CommandOSSet : public Command
" LIST List the options"));
}
else if (subcommand.equals_ci("LIST"))
- source.Reply(_("Syntax: \002LIST\n"
- "Display the various %s settings"), source.service->nick.c_str());
+ source.Reply(_("Syntax: \002LIST\002\n"
+ " \n"
+ "Display the various %s settings."), source.service->nick.c_str());
else if (subcommand.equals_ci("READONLY"))
source.Reply(_("Syntax: \002READONLY {ON | OFF}\002\n"
" \n"
@@ -220,18 +221,29 @@ class CommandOSSet : public Command
"or restarted.\n"
" \n"
"This option is equivalent to the command-line option\n"
- "\002-readonly\002."));
+ "\002--readonly\002."));
+ else if (subcommand.equals_ci("DEBUG"))
+ source.Reply(_("Syntax: \002DEBUG {ON | OFF}\002\n"
+ " \n"
+ "Sets debug mode on or off.\n"
+ " \n"
+ "This option is equivalent to the command-line option\n"
+ "\002--debug\002."));
else if (subcommand.equals_ci("NOEXPIRE"))
source.Reply(_("Syntax: \002NOEXPIRE {ON | OFF}\002\n"
+ " \n"
"Sets no expire mode on or off. In no expire mode, nicks,\n"
"channels, akills and exceptions won't expire until the\n"
"option is unset.\n"
+ " \n"
"This option is equivalent to the command-line option\n"
- "\002-noexpire\002."));
+ "\002--noexpire\002."));
else if (subcommand.equals_ci("SUPERADMIN"))
source.Reply(_("Syntax: \002SUPERADMIN {ON | OFF}\002\n"
+ " \n"
"Setting this will grant you extra privileges such as the\n"
"ability to be \"founder\" on all channel's etc...\n"
+ " \n"
"This option is \002not\002 persistent, and should only be used when\n"
"needed, and set back to OFF when no longer needed."));
else