Allow any plugin to be enabled or disabled via settings

This commit is contained in:
Zachary Yedidia
2019-08-02 13:32:44 -07:00
parent 576036f251
commit a47e1f0ca5
3 changed files with 28 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ func SetStatusInfoFnLua(s string, fn string) {
}
}
statusInfo[s] = func(b *buffer.Buffer) string {
if pl == nil {
if pl == nil || !pl.IsEnabled() {
return ""
}
val, err := pl.Call(plFn, luar.New(ulua.L, b))