removes unused bool value used to check if RLV is enabled (uses the config) this was blocking RLV commands from working

This commit is contained in:
Madpeter 2020-09-07 00:30:20 +01:00
parent fdb884876f
commit 4bc88a0397

View file

@ -10,7 +10,6 @@ namespace BSB.bottypes
public abstract class RLVbot : RLVbotHelper public abstract class RLVbot : RLVbotHelper
{ {
// normal bot stuff // normal bot stuff
protected bool allow_RLV;
protected RLV.RLVcontrol RLVinterface; protected RLV.RLVcontrol RLVinterface;
public RLV.RLVcontrol GetRLVinterface { get { return RLVinterface; } } public RLV.RLVcontrol GetRLVinterface { get { return RLVinterface; } }
@ -32,7 +31,7 @@ namespace BSB.bottypes
base.ChatInputHandler(sender, e); base.ChatInputHandler(sender, e);
if (e.Type == ChatType.OwnerSay) if (e.Type == ChatType.OwnerSay)
{ {
if (allow_RLV == true) if (myconfig.Setting_AllowRLV == true)
{ {
if (e.Message.StartsWith("@") == true) if (e.Message.StartsWith("@") == true)
{ {