mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
[s] Adds message length limits. (#29107)
* message limits * different limits
This commit is contained in:
@@ -139,6 +139,10 @@
|
||||
if(handle_spam_prevention(msg, MUTE_ADMINHELP, OOC_COOLDOWN))
|
||||
return
|
||||
|
||||
// Limit msg length
|
||||
if(!check_rights(R_ADMIN, FALSE))
|
||||
msg = copytext_char(msg, 1, 2048)
|
||||
|
||||
// Let high-rank admins use advanced pencode.
|
||||
if(check_rights(R_SERVER|R_DEBUG, 0))
|
||||
msg = admin_pencode_to_html(msg)
|
||||
|
||||
Reference in New Issue
Block a user