removes the pointless smart reply vaildation
This commit is contained in:
parent
6760f18fa6
commit
dea834a427
1 changed files with 24 additions and 38 deletions
|
|
@ -135,13 +135,9 @@ namespace BSB.Commands
|
||||||
|
|
||||||
public bool SmartCommandReply(string target, string output)
|
public bool SmartCommandReply(string target, string output)
|
||||||
{
|
{
|
||||||
return SmartCommandReply(target, output, "", false);
|
return SmartCommandReply(target, output, "");
|
||||||
}
|
}
|
||||||
public bool SmartCommandReply(string target, string output, string command)
|
public bool SmartCommandReply(string target, string output, string command)
|
||||||
{
|
|
||||||
return SmartCommandReply(target, output, command, false);
|
|
||||||
}
|
|
||||||
public bool SmartCommandReply(string target,string output,string command,bool vaildate_only)
|
|
||||||
{
|
{
|
||||||
string mode = "CHAT";
|
string mode = "CHAT";
|
||||||
UUID target_avatar = UUID.Zero;
|
UUID target_avatar = UUID.Zero;
|
||||||
|
|
@ -158,8 +154,7 @@ namespace BSB.Commands
|
||||||
{
|
{
|
||||||
int.TryParse(target, out target_channel);
|
int.TryParse(target, out target_channel);
|
||||||
}
|
}
|
||||||
if (vaildate_only == false)
|
|
||||||
{
|
|
||||||
if (mode == "CHAT")
|
if (mode == "CHAT")
|
||||||
{
|
{
|
||||||
bot.GetClient.Self.Chat(output, target_channel, ChatType.Normal);
|
bot.GetClient.Self.Chat(output, target_channel, ChatType.Normal);
|
||||||
|
|
@ -196,15 +191,6 @@ namespace BSB.Commands
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if ((mode == "CHAT") || (mode == "IM") || (mode == "HTTP"))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected List<string> suppress_warnings = new List<string>();
|
protected List<string> suppress_warnings = new List<string>();
|
||||||
public bool Call(string command)
|
public bool Call(string command)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue