mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
chatfilter , team character , auto ban ,welcome msg , profanity check
This commit is contained in:
parent
69a910aa0f
commit
a11d0a7a33
57 changed files with 427 additions and 601 deletions
10
dist/ba_root/mods/chatHandle/handlechat.py
vendored
10
dist/ba_root/mods/chatHandle/handlechat.py
vendored
|
|
@ -4,7 +4,7 @@ from playersData import pdata
|
|||
from serverData import serverdata
|
||||
from chatHandle.ChatCommands import Main
|
||||
from tools import Logger, servercheck
|
||||
from chatHandle import chatFilter
|
||||
from chatHandle.chatFilter import ChatFilter
|
||||
import ba, _ba
|
||||
import setting
|
||||
|
||||
|
|
@ -22,8 +22,7 @@ def filter_chat_message(msg, client_id):
|
|||
acid = i['account_id']
|
||||
Logger.log(acid+" | "+msg,"chat")
|
||||
|
||||
if acid in serverdata.clients:
|
||||
|
||||
if acid in serverdata.clients and serverdata.clients[acid]["verified"]:
|
||||
if serverdata.clients[acid]["isMuted"]:
|
||||
_ba.screenmessage("You are on mute", transient=True, clients=[client_id])
|
||||
return None
|
||||
|
|
@ -31,9 +30,10 @@ def filter_chat_message(msg, client_id):
|
|||
_ba.screenmessage("New accounts not allowed to chat here", transient=True, clients=[client_id])
|
||||
return None
|
||||
else:
|
||||
return msg
|
||||
return ChatFilter.filter(msg,acid,client_id)
|
||||
|
||||
|
||||
else:
|
||||
_ba.screenmessage("Fetching your account info , Wait a minute", transient=True, clients=[client_id])
|
||||
return None
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue