Fixed double message when act is on and ac_key is used

This commit is contained in:
NEMESIS13cz
2015-08-10 16:45:18 +02:00
parent 366d57c47f
commit 7e49ca9817

View File

@@ -81,6 +81,6 @@ def on_chat(event):
if sender.getName() in ac_toggle_list:
adminchat(sender, msg)
event.setCancelled(True)
if msg[:len(key)] == key:
elif msg[:len(key)] == key:
adminchat(sender, msg[len(key):])
event.setCancelled(True)