they both did the same thing anyway...

This commit is contained in:
Madpeter 2020-05-11 13:14:51 +01:00
parent 13ae57b777
commit cbf6dd0709

View file

@ -8,17 +8,9 @@ namespace BSB.RLV.Miscellaneous
public class Clear : RLV_command public class Clear : RLV_command
{ {
public override bool CallFunction(string[] args) public override bool CallFunction(string[] args)
{
if(args.Length == 1)
{ {
bot.Clearrule(false, caller_uuid); bot.Clearrule(false, caller_uuid);
bot.Clearrule(true, caller_uuid); bot.Clearrule(true, caller_uuid);
}
else
{
bot.Clearrule(false, caller_uuid);
bot.Clearrule(true, caller_uuid);
}
return true; return true;
} }
} }