Bombsquad-Ballistica-Modded.../dist/ba_root/mods/chatHandle/handlechat.py

20 lines
383 B
Python
Raw Normal View History

2021-04-17 22:34:48 +05:30
# Released under the MIT License. See LICENSE for details.
2021-04-22 14:54:47 +05:30
from playersData import pdata
from chatHandle.ChatCommands import Main
2021-04-17 22:34:48 +05:30
import ba, _ba
def filter_chat_message(msg, client_id):
if msg.startswith("/"):
return Main.Command(msg, client_id)
return msg
"""
if chatfilter.isAbuse(msg):
pdata.warn(public_id(client_id))
return None
return msg
"""