Remove superfluous #disablepoll command.

Already resolved by 29070c78a9.
pull/46/head
Snakes 2022-12-04 17:15:52 -05:00
parent ed0981cbdb
commit be2b210df4
Signed by: Snakes
GPG Key ID: E745A82778055C7E
4 changed files with 0 additions and 11 deletions

View File

@ -1444,8 +1444,6 @@ TROLLTITLES = [
"Hey jannies can you please ban @{username}",
]
DISABLE_POLL_COMMAND = "disablepoll"
NOTIFIED_USERS = {
'aevan': AEVANN_ID,
'avean': AEVANN_ID,

View File

@ -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)

View File

@ -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]:

View File

@ -127,11 +127,6 @@ Text 2
<td>#roll</td>
<td>A number 1&ndash;9999.</td>
</tr>
<tr>
<td>Disable Poll Formatting</td>
<td>#disablepoll</td>
<td>Disables poll options (useful for large code blocks that have things like &amp;&amp;).</td>
</tr>
{%- endif %}
<tr>
<td>