diff options
| author | 1029chris <1029chris@gmail.com> | 2016-04-08 22:36:07 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-04-08 22:36:07 -0700 |
| commit | b6b0f050d75e22af5eb53d2c1d058a40e0ff1e6b (patch) | |
| tree | 07fd8c3e950852cfade94a9371f13cca711a388f /chat.lua | |
| parent | 551bf54750c734b8fdf98bc13e294592174e0c63 (diff) | |
Fixed crash after 8 messages are sent
Diffstat (limited to 'chat.lua')
| -rw-r--r-- | chat.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
