From 63d66463d71646001df76b456aa51ad17873b2da Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Sat, 13 Feb 2016 12:22:24 +0100 Subject: [PATCH] fixed cfg database calling for mysql function (issue #45) --- luascripts/db/cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luascripts/db/cfg.lua b/luascripts/db/cfg.lua index 4e455b5..e1f8b68 100644 --- a/luascripts/db/cfg.lua +++ b/luascripts/db/cfg.lua @@ -118,7 +118,7 @@ function cfg.getplayerid(clientid) return clientid end -function mysql.isplayerbot(clientid) +function cfg.isplayerbot(clientid) return string.match(stats.get(clientid, "playerGUID"), 'OMNIBOT%d%d%d+') end