From cff92a1a0c488debba04e81f1b473beea1268d6d Mon Sep 17 00:00:00 2001 From: Jesse Manelius Date: Sat, 24 Mar 2018 00:07:35 +0200 Subject: [PATCH] fix chat cmds for chars without keys --- iKeystones.lua | 1 + iKeystones.toc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iKeystones.lua b/iKeystones.lua index 68994d7..e6c48cc 100644 --- a/iKeystones.lua +++ b/iKeystones.lua @@ -369,6 +369,7 @@ function iKS:printKeystones() end end function iKS:shouldReportKey(KeyLevel, exactLevel, minLevel, maxLevel) + if not KeyLevel then return false end if not exactLevel and not minLevel and not maxLevel then return true end if exactLevel then if KeyLevel == exactLevel then return true else return end end if minLevel then if KeyLevel >= minLevel and (not maxLevel or (maxLevel and KeyLevel <= maxLevel)) then return true else return end end diff --git a/iKeystones.toc b/iKeystones.toc index 404ac40..6b37b24 100644 --- a/iKeystones.toc +++ b/iKeystones.toc @@ -2,7 +2,7 @@ ## Title: iKeystones ## Notes: Tracks your keystones ## Author: Ironi -## Version: 1.565 +## Version: 1.566 ## DefaultState: enabled ## SavedVariables: iKeystonesDB, iKeystonesConfig -- 1.7.9.5