mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
Merge branch 'test' of https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server into test
This commit is contained in:
commit
44a934b120
12 changed files with 78 additions and 134 deletions
4
dist/ba_data/python/ba/_hooks.py
vendored
4
dist/ba_data/python/ba/_hooks.py
vendored
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
4
dist/ba_data/python/ba/_session.py
vendored
4
dist/ba_data/python/ba/_session.py
vendored
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue