mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 21:48:41 +00:00
- small fix
svn path=/trunk/; revision=33588
This commit is contained in:
parent
fdb3291c6b
commit
4442c49eca
6 changed files with 6 additions and 8 deletions
|
@ -20,7 +20,7 @@ namespace TechBot.Commands.Common
|
||||||
|
|
||||||
public override void ExecuteCommand()
|
public override void ExecuteCommand()
|
||||||
{
|
{
|
||||||
if (Parameters == null)
|
if (string.IsNullOrEmpty(BugID))
|
||||||
{
|
{
|
||||||
Say("Please provide a valid bug number.");
|
Say("Please provide a valid bug number.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace TechBot.Commands.Common
|
||||||
|
|
||||||
public override void ExecuteCommand()
|
public override void ExecuteCommand()
|
||||||
{
|
{
|
||||||
if (Text == null)
|
if (string.IsNullOrEmpty(Text))
|
||||||
{
|
{
|
||||||
Say("Please provide a valid HRESULT value.");
|
Say("Please provide a valid HRESULT value.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace TechBot.Commands.Common
|
||||||
|
|
||||||
public override void ExecuteCommand()
|
public override void ExecuteCommand()
|
||||||
{
|
{
|
||||||
if (Text == null)
|
if (string.IsNullOrEmpty(Text))
|
||||||
{
|
{
|
||||||
Say("Please provide a valid NTSTATUS value.");
|
Say("Please provide a valid NTSTATUS value.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace TechBot.Commands.Common
|
||||||
|
|
||||||
public override void ExecuteCommand()
|
public override void ExecuteCommand()
|
||||||
{
|
{
|
||||||
if (WMText == null)
|
if (string.IsNullOrEmpty(WMText))
|
||||||
{
|
{
|
||||||
Say("Please provide a valid window message value or name.");
|
Say("Please provide a valid window message value or name.");
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace TechBot.Commands.Common
|
||||||
|
|
||||||
public override void ExecuteCommand()
|
public override void ExecuteCommand()
|
||||||
{
|
{
|
||||||
if (Text == null)
|
if (string.IsNullOrEmpty(Text))
|
||||||
{
|
{
|
||||||
Say("Please provide a valid System Error Code value.");
|
Say("Please provide a valid System Error Code value.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,6 @@ namespace TechBot.Library
|
||||||
[Command("help", Help = "!help or !help -name:[CommandName]", Description = "Shows this help , type 'help -name:[CommandName]'")]
|
[Command("help", Help = "!help or !help -name:[CommandName]", Description = "Shows this help , type 'help -name:[CommandName]'")]
|
||||||
public class HelpCommand : Command
|
public class HelpCommand : Command
|
||||||
{
|
{
|
||||||
private string m_CommandName = null;
|
|
||||||
|
|
||||||
public HelpCommand()
|
public HelpCommand()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -22,7 +20,7 @@ namespace TechBot.Library
|
||||||
|
|
||||||
public override void ExecuteCommand()
|
public override void ExecuteCommand()
|
||||||
{
|
{
|
||||||
if (CommandName == null)
|
if (string.IsNullOrEmpty(CommandName))
|
||||||
{
|
{
|
||||||
Say("I support the following commands:");
|
Say("I support the following commands:");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue