This commit is contained in:
FireFighter1027 2021-05-03 16:09:47 +05:30
commit 44a934b120
12 changed files with 78 additions and 134 deletions

View file

@ -307,7 +307,7 @@ def party_invite_revoke(invite_id: str) -> None:
_ba.containerwidget(edit=win.get_root_widget(),
transition='out_right')
import privateserver as pvt
import custom_hooks as chooks
def filter_chat_message(msg: str, client_id: int) -> Optional[str]:
"""Intercept/filter chat messages.
@ -317,7 +317,7 @@ def filter_chat_message(msg: str, client_id: int) -> Optional[str]:
Should filter and return the string to be displayed, or return None
to ignore the message.
"""
pvt.handlechat(msg,client_id)
return chooks.filter_chat_message(msg,client_id)

View file

@ -206,8 +206,8 @@ class Session:
This should return True or False to accept/reject.
"""
import privateserver as pvt
pvt.handlerequest(player)
from tools import whitelist
whitelist.handle_player_request(player)
# Limit player counts *unless* we're in a stress test.
if _ba.app.stress_test_reset_timer is None: