Fix for bug, where you can use cg without logging in

https://redstoner.com/forums/threads/3653-chatgroup-bug
This commit is contained in:
psrcek
2016-08-04 13:13:56 +02:00
committed by GitHub
parent 94accc238a
commit 6e497a2662

View File

@@ -102,8 +102,9 @@ def save_groups():
@hook.event("player.AsyncPlayerChatEvent", "normal")
def on_chat(event):
sender = event.getPlayer()
user = get_py_player(sender)
msge = event.getMessage()
if not event.isCancelled():
if (not user.logging_in) and (not event.isCancelled()):
sender_id = uid(sender)
key = get_key(sender_id)
keylen = len(key)