summaryrefslogtreecommitdiff
path: root/modules/commands/bs_set.cpp
diff options
context:
space:
mode:
authorlethality <lethality@anope.org>2011-08-08 06:19:35 +0100
committerlethality <lethality@anope.org>2011-08-08 06:19:35 +0100
commit286a9edb1ecc05d0afc515e05dce868efe38f063 (patch)
treec224702fc1f6e57bc3e24ac478afd236760aa1b2 /modules/commands/bs_set.cpp
parentade92395a0f08b125b60fbbd488eecb5c3258e76 (diff)
Standardized some of the SyntaxError/Help replies and corrected some syntax in BotServ set
Diffstat (limited to 'modules/commands/bs_set.cpp')
-rw-r--r--modules/commands/bs_set.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp
index ccd1bb615..2591ca5a5 100644
--- a/modules/commands/bs_set.cpp
+++ b/modules/commands/bs_set.cpp
@@ -177,7 +177,7 @@ class CommandBSSet : public Command
this->OnSyntaxError(source, "MSG");
}
else
- source.Reply(UNKNOWN_OPTION, option.c_str(), Config->UseStrictPrivMsgString.c_str(), source.owner->nick.c_str(), this->name.c_str());
+ this->OnSyntaxError(source, "");
}
return;
@@ -284,9 +284,11 @@ class CommandBSSet : public Command
else if (subcommand.equals_ci("GREET"))
this->SendSyntax(source, "\037channel\037 GREET {\037ON|OFF\037}");
else if (subcommand.equals_ci("MSG"))
- this->SendSyntax(source, "\037botname\037 NOBOT {\037ON|OFF\037}");
+ this->SendSyntax(source, "\037channel\037 MSG {\037ON|OFF\037}");
else if (subcommand.equals_ci("NOBOT"))
- this->SendSyntax(source, "\037botname\037 NOBOT {\037ON|OFF\037}");
+ this->SendSyntax(source, "\037channel\037 NOBOT {\037ON|OFF\037}");
+ else
+ this->OnSyntaxError(source, "");
}
};