aboutsummaryrefslogtreecommitdiff
path: root/chat.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-08 22:36:07 -0700
committer1029chris <1029chris@gmail.com>2016-04-08 22:36:07 -0700
commitb6b0f050d75e22af5eb53d2c1d058a40e0ff1e6b (patch)
tree07fd8c3e950852cfade94a9371f13cca711a388f /chat.lua
parent551bf54750c734b8fdf98bc13e294592174e0c63 (diff)
Fixed crash after 8 messages are sent
Diffstat (limited to 'chat.lua')
-rw-r--r--chat.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/chat.lua b/chat.lua
index 302fb4d..d6b5a0d 100644
--- a/chat.lua
+++ b/chat.lua
@@ -45,7 +45,9 @@ function sendMessage(id, message)
if win[1].ex == true or layer[1] ~= 1 then
notifyNow("CHAT NOTIFICATION", "New message from\nBest Friend:\n\n" .. message)
end
- msg.c = msg.c + 1
+ if msg.c ~= 8 then
+ msg.c = msg.c + 1
+ end
end
function chatlimit()
if #msg.msgs <=8 then