Quantcast

fix chat cmds for chars without keys

Jesse Manelius [03-23-18 - 22:07]
fix chat cmds for chars without keys
Filename
iKeystones.lua
iKeystones.toc
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