chat filter err fix

This commit is contained in:
Ayush Saini 2022-04-03 22:04:05 +05:30
parent a2628e716a
commit 39a0c3e1c3

View file

@ -28,6 +28,8 @@ def filter(msg,pb_id,client_id):
_ba.screenmessage("Special role found, Warn BYPASSED!", color=(0,1,0), transient=True, clients=[client_id]) _ba.screenmessage("Special role found, Warn BYPASSED!", color=(0,1,0), transient=True, clients=[client_id])
now = time.time() now = time.time()
if pb_id not in serverdata.clients:
return None
if "lastMsgTime" in serverdata.clients[pb_id]: if "lastMsgTime" in serverdata.clients[pb_id]:
count=serverdata.clients[pb_id]["cMsgCount"] count=serverdata.clients[pb_id]["cMsgCount"]