summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-12 22:35:34 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-12 22:35:34 +0200
commit66820092160fc24e21e437c0a186aa5922e424c6 (patch)
tree1974c1a3b91642538f779242ab8384db3a206e35 /src
parent493ff75f1f89a7ede2800eff0368740fbaf02aa4 (diff)
parentad2e0ef1cd4c0cdcdb2241a10d5fe554984cb91d (diff)
Merge pull request #827 from Robby-/insp20-helpopconf
Some more helpop config updates, and fix a few module syntax messages.
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_connect.cpp2
-rw-r--r--src/commands/cmd_squit.cpp2
-rw-r--r--src/commands/cmd_userhost.cpp2
-rw-r--r--src/modules/m_callerid.cpp2
-rw-r--r--src/modules/m_dccallow.cpp4
-rw-r--r--src/modules/m_userip.cpp2
6 files changed, 7 insertions, 7 deletions
diff --git a/src/commands/cmd_connect.cpp b/src/commands/cmd_connect.cpp
index 7cf4752d2..8fb82fab4 100644
--- a/src/commands/cmd_connect.cpp
+++ b/src/commands/cmd_connect.cpp
@@ -30,7 +30,7 @@ class CommandConnect : public Command
public:
/** Constructor for connect.
*/
- CommandConnect ( Module* parent) : Command(parent,"CONNECT",1) { flags_needed = 'o'; syntax = "<servername> [<remote-server>]"; }
+ CommandConnect ( Module* parent) : Command(parent,"CONNECT",1) { flags_needed = 'o'; syntax = "<servername>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
diff --git a/src/commands/cmd_squit.cpp b/src/commands/cmd_squit.cpp
index 064d2a31d..ce73ee05b 100644
--- a/src/commands/cmd_squit.cpp
+++ b/src/commands/cmd_squit.cpp
@@ -30,7 +30,7 @@ class CommandSquit : public Command
public:
/** Constructor for squit.
*/
- CommandSquit ( Module* parent) : Command(parent,"SQUIT",1,2) { flags_needed = 'o'; syntax = "<servername> [<reason>]"; }
+ CommandSquit ( Module* parent) : Command(parent,"SQUIT",1,2) { flags_needed = 'o'; syntax = "<servername>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
diff --git a/src/commands/cmd_userhost.cpp b/src/commands/cmd_userhost.cpp
index 399de0b1a..1065f9a35 100644
--- a/src/commands/cmd_userhost.cpp
+++ b/src/commands/cmd_userhost.cpp
@@ -31,7 +31,7 @@ class CommandUserhost : public Command
/** Constructor for userhost.
*/
CommandUserhost ( Module* parent) : Command(parent,"USERHOST", 1, 5) {
- syntax = "<nick> {<nick>}";
+ syntax = "<nick> [<nick> ...]";
}
/** Handle command.
* @param parameters The parameters to the comamnd
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 09c5c3f24..4147f0b16 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -146,7 +146,7 @@ public:
extInfo(Creator)
{
allow_empty_last_param = false;
- syntax = "{[+|-]<nicks>}|*}";
+ syntax = "*|(+|-)<nick>[,(+|-)<nick> ...]";
TRANSLATE2(TR_CUSTOM, TR_END);
}
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index db0b54764..b42d12968 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -60,7 +60,7 @@ class CommandDccallow : public Command
public:
CommandDccallow(Module* parent) : Command(parent, "DCCALLOW", 0)
{
- syntax = "{[+|-]<nick> <time>|HELP|LIST}";
+ syntax = "[(+|-)<nick> [<time>]]|[LIST|HELP]";
/* XXX we need to fix this so it can work with translation stuff (i.e. move +- into a seperate param */
}
@@ -203,7 +203,7 @@ class CommandDccallow : public Command
void DisplayHelp(User* user)
{
- user->WriteNumeric(998, "%s :DCCALLOW [<+|->nick [time]] [list] [help]", user->nick.c_str());
+ user->WriteNumeric(998, "%s :DCCALLOW [(+|-)<nick> [<time>]]|[LIST|HELP]", user->nick.c_str());
user->WriteNumeric(998, "%s :You may allow DCCs from specific users by specifying a", user->nick.c_str());
user->WriteNumeric(998, "%s :DCC allow for the user you want to receive DCCs from.", user->nick.c_str());
user->WriteNumeric(998, "%s :For example, to allow the user Brain to send you inspircd.exe", user->nick.c_str());
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp
index 33b261ca1..9502c91b1 100644
--- a/src/modules/m_userip.cpp
+++ b/src/modules/m_userip.cpp
@@ -30,7 +30,7 @@ class CommandUserip : public Command
public:
CommandUserip(Module* Creator) : Command(Creator,"USERIP", 1)
{
- syntax = "<nick>{,<nick>}";
+ syntax = "<nick> [<nick> ...]";
}
CmdResult Handle (const std::vector<std::string> &parameters, User *user)