mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
14 lines
525 B
Plaintext
14 lines
525 B
Plaintext
/**
|
|
* Holds global defines for use in text input procedures
|
|
*/
|
|
|
|
|
|
/**
|
|
* stuff like `copytext(input, length(input))` will trim the last character of the input,
|
|
* because DM does it so it copies until the char BEFORE the `end` arg, so we need to bump `end` by 1 in these cases.
|
|
*/
|
|
#define PREVENT_CHARACTER_TRIM_LOSS(integer) (integer + 1)
|
|
|
|
/// Simply removes the < and > characters, and limits the length of the message.
|
|
#define STRIP_HTML_SIMPLE(text, limit) (GLOB.angular_brackets.Replace(copytext(text, 1, limit), ""))
|