@@ -84,7 +84,7 @@ function chat(human, recvMsg, isJson)
end
local needChargeVal = getNeedChargeVal()
- if needChargeVal > human.db.topupAcount then
+ if needChargeVal > (human.db.topupAcount or 0) then
return Broadcast.sendDown(human, Util.format(Lang.CHAT_ERR_CHARGE_NOT_ENOUGH, needChargeVal))