From 3c6dcb0d0d1a25eeb2e01a68f0094dfc0c6518d2 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 25 Jun 2008 14:13:21 +0000 Subject: [PATCH] Change the logic and make the AnswerInPublic Command option opt-out instead of opt-in. Now everything except !help is allowed in public again (due to popular demand). svn path=/trunk/; revision=34082 --- irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs | 5 ----- irc/TechBot/TechBot.Library/Commands/Base/Command.cs | 2 +- irc/TechBot/TechBot.Library/Commands/HelpCommand.cs | 7 ++++++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs b/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs index b3e182dce7a..d6563d6867f 100644 --- a/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs +++ b/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs @@ -12,11 +12,6 @@ namespace TechBot.Commands.Common { } - public override bool AnswerInPublic - { - get { return true; } - } - public string BugID { get { return Parameters; } diff --git a/irc/TechBot/TechBot.Library/Commands/Base/Command.cs b/irc/TechBot/TechBot.Library/Commands/Base/Command.cs index a822e4ca6e9..040d870d833 100644 --- a/irc/TechBot/TechBot.Library/Commands/Base/Command.cs +++ b/irc/TechBot/TechBot.Library/Commands/Base/Command.cs @@ -23,7 +23,7 @@ namespace TechBot.Library public virtual bool AnswerInPublic { - get { return false; } + get { return true; } } public string Name diff --git a/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs b/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs index 24824f220f7..7c7fb34cddf 100644 --- a/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs +++ b/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs @@ -11,7 +11,12 @@ namespace TechBot.Library { } - [CommandParameter("Name", "The command name to show help")] + public override bool AnswerInPublic + { + get { return false; } + } + + [CommandParameter("Name", "The command name to show help")] public string CommandName { get { return Parameters; }