- small fix
authorMarc Piulachs <marc.piulachs@live.com>
Sun, 18 May 2008 16:01:34 +0000 (16:01 +0000)
committerMarc Piulachs <marc.piulachs@live.com>
Sun, 18 May 2008 16:01:34 +0000 (16:01 +0000)
svn path=/trunk/; revision=33588

irc/TechBot/TechBot.Commands.Common/Base/BugCommand.cs
irc/TechBot/TechBot.Commands.Common/HResultCommand.cs
irc/TechBot/TechBot.Commands.Common/NtStatusCommand.cs
irc/TechBot/TechBot.Commands.Common/WMCommand.cs
irc/TechBot/TechBot.Commands.Common/WinerrorCommand.cs
irc/TechBot/TechBot.Library/Commands/HelpCommand.cs

index 32f419e..a3c6c1f 100644 (file)
@@ -20,7 +20,7 @@ namespace TechBot.Commands.Common
 
         public override void ExecuteCommand()
         {
-            if (Parameters == null)
+            if (string.IsNullOrEmpty(BugID))
             {
                 Say("Please provide a valid bug number.");
             }
index 5d9f30d..fd42239 100644 (file)
@@ -19,7 +19,7 @@ namespace TechBot.Commands.Common
 
                public override void ExecuteCommand()
                {
-            if (Text == null)
+            if (string.IsNullOrEmpty(Text))
             {
                 Say("Please provide a valid HRESULT value.");
             }
index 1c3b668..96120e4 100644 (file)
@@ -19,7 +19,7 @@ namespace TechBot.Commands.Common
 
                public override void ExecuteCommand()
                {
-            if (Text == null)
+            if (string.IsNullOrEmpty(Text))
             {
                 Say("Please provide a valid NTSTATUS value.");
             }
index 4f2ec61..2b79f4e 100644 (file)
@@ -26,7 +26,7 @@ namespace TechBot.Commands.Common
 
                public override void ExecuteCommand()
                {
-            if (WMText == null)
+            if (string.IsNullOrEmpty(WMText))
             {
                 Say("Please provide a valid window message value or name.");
 
index d6736a3..46eadd2 100644 (file)
@@ -19,7 +19,7 @@ namespace TechBot.Commands.Common
 
                public override void ExecuteCommand()
                {
-            if (Text == null)
+            if (string.IsNullOrEmpty(Text))
             {
                 Say("Please provide a valid System Error Code value.");
             }
index ff68f81..24824f2 100644 (file)
@@ -7,8 +7,6 @@ namespace TechBot.Library
     [Command("help", Help = "!help or !help -name:[CommandName]", Description = "Shows this help , type 'help -name:[CommandName]'")]
        public class HelpCommand : Command
        {
-        private string m_CommandName = null;
-
         public HelpCommand()
                {
                }
@@ -22,7 +20,7 @@ namespace TechBot.Library
 
         public override void ExecuteCommand()
         {
-            if (CommandName == null)
+            if (string.IsNullOrEmpty(CommandName))
             {
                 Say("I support the following commands:");