[ros-diffs] [navaraf] 34082: 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).

navaraf at svn.reactos.org navaraf at svn.reactos.org
Wed Jun 25 16:13:21 CEST 2008


Author: navaraf
Date: Wed Jun 25 09:13:21 2008
New Revision: 34082

URL: http://svn.reactos.org/svn/reactos?rev=34082&view=rev
Log:
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).

Modified:
    trunk/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs
    trunk/irc/TechBot/TechBot.Library/Commands/Base/Command.cs
    trunk/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs

Modified: trunk/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs
URL: http://svn.reactos.org/svn/reactos/trunk/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs?rev=34082&r1=34081&r2=34082&view=diff
==============================================================================
--- trunk/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs [iso-8859-1] (original)
+++ trunk/irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs [iso-8859-1] Wed Jun 25 09:13:21 2008
@@ -11,11 +11,6 @@
 		public BugCommand()
 		{
 		}
-
-        public override bool AnswerInPublic
-        {
-            get { return true; }
-        }
 
         public string BugID
         {

Modified: trunk/irc/TechBot/TechBot.Library/Commands/Base/Command.cs
URL: http://svn.reactos.org/svn/reactos/trunk/irc/TechBot/TechBot.Library/Commands/Base/Command.cs?rev=34082&r1=34081&r2=34082&view=diff
==============================================================================
--- trunk/irc/TechBot/TechBot.Library/Commands/Base/Command.cs [iso-8859-1] (original)
+++ trunk/irc/TechBot/TechBot.Library/Commands/Base/Command.cs [iso-8859-1] Wed Jun 25 09:13:21 2008
@@ -23,7 +23,7 @@
 
         public virtual bool AnswerInPublic
         {
-            get { return false; }
+            get { return true; }
         }
 
         public string Name

Modified: trunk/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs
URL: http://svn.reactos.org/svn/reactos/trunk/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs?rev=34082&r1=34081&r2=34082&view=diff
==============================================================================
--- trunk/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs [iso-8859-1] (original)
+++ trunk/irc/TechBot/TechBot.Library/Commands/HelpCommand.cs [iso-8859-1] Wed Jun 25 09:13:21 2008
@@ -11,7 +11,12 @@
 		{
 		}
 
-        [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; }



More information about the Ros-diffs mailing list