From bd35f849452cc4cc83972939bfbc363e679203e1 Mon Sep 17 00:00:00 2001 From: Robby- Date: Sat, 12 Apr 2014 22:08:41 +0200 Subject: Correct the syntax messages of a few modules. --- src/commands/cmd_connect.cpp | 2 +- src/commands/cmd_squit.cpp | 2 +- src/commands/cmd_userhost.cpp | 2 +- src/modules/m_callerid.cpp | 2 +- src/modules/m_dccallow.cpp | 4 ++-- src/modules/m_userip.cpp | 2 +- 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 = " []"; } + CommandConnect ( Module* parent) : Command(parent,"CONNECT",1) { flags_needed = 'o'; syntax = ""; } /** 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 = " []"; } + CommandSquit ( Module* parent) : Command(parent,"SQUIT",1,2) { flags_needed = 'o'; syntax = ""; } /** 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 = " {}"; + syntax = " [ ...]"; } /** 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 = "{[+|-]}|*}"; + syntax = "*|(+|-)[,(+|-) ...]"; 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 = "{[+|-]