mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
[MIRROR] skip limits for chunked messages (#12144)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
b28a44c791
commit
1850547bf3
@@ -215,6 +215,20 @@
|
||||
// Close all tgui datums based on window_id.
|
||||
SStgui.force_close_window(user, window_id)
|
||||
|
||||
/**
|
||||
* A few edge cases that need to bypass topic limits currently, comment why!
|
||||
*
|
||||
* returns TRUE for bypass
|
||||
*/
|
||||
/proc/bypass_topic_limit(href_list)
|
||||
// Deviation from TG. Our statbrowser has so many commands that logging in as a borg can cause it to rate limit you. This needs fixing eventually.
|
||||
if(href_list["window_id"] == "statbrowser")
|
||||
return TRUE
|
||||
// Chunked messages will exceed the limit
|
||||
if(href_list["tgui"] && href_list["totalPackets"])
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/**
|
||||
* Middleware for /client/Topic.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user