diff --git a/files/helpers/const.py b/files/helpers/const.py index 63e9f274a..7f118b22c 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1444,8 +1444,6 @@ TROLLTITLES = [ "Hey jannies can you please ban @{username}", ] -DISABLE_POLL_COMMAND = "disablepoll" - NOTIFIED_USERS = { 'aevan': AEVANN_ID, 'avean': AEVANN_ID, diff --git a/files/helpers/regex.py b/files/helpers/regex.py index ff413615c..f5c64c0a5 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -178,7 +178,6 @@ commands = { "factcheck": FACTCHECK_REPLIES, "8ball": EIGHTBALL_REPLIES, "roll": range(1, 9999), - DISABLE_POLL_COMMAND: None, } command_regex = re.compile(f"(\s|\n|^)#({'|'.join(commands.keys())})", flags=re.A|re.I) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 642984d55..ef3a0f63d 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -497,9 +497,6 @@ def validate_css(css): return True, "" def sanitize_poll_options(v:User, body:str, allow_bets:bool) -> tuple[str, List[Any], List[Any], List[Any]]: - if FEATURES['MARKUP_COMMANDS'] and body.startswith(f"#{DISABLE_POLL_COMMAND}"): - return (body, [], [], []) - def sanitize_poll_type(body:str, re:re.Pattern) -> tuple[str, List[str]]: opts = [] for i in list(re.finditer(body))[:POLL_MAX_OPTIONS]: diff --git a/files/templates/formatting.html b/files/templates/formatting.html index ae1a80d13..39584c9a1 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -127,11 +127,6 @@ Text 2 #roll A number 1–9999. - - Disable Poll Formatting - #disablepoll - Disables poll options (useful for large code blocks that have things like &&). - {%- endif %}