forked from rDrama/rDrama
LGB: disable markup commands.
parent
cdfc68cb4b
commit
d06ea7d349
|
@ -153,6 +153,7 @@ FEATURES = {
|
|||
'HOUSES': False,
|
||||
'USERS_SUICIDE': True,
|
||||
'GAMBLING': True,
|
||||
'MARKUP_COMMANDS': True,
|
||||
}
|
||||
|
||||
EMOJI_MARSEYS = True
|
||||
|
@ -333,6 +334,7 @@ elif SITE == 'lgbdropthet.com':
|
|||
FEATURES['BADGES'] = False
|
||||
FEATURES['USERS_SUICIDE'] = False
|
||||
FEATURES['GAMBLING'] = False
|
||||
FEATURES['MARKUP_COMMANDS'] = False
|
||||
|
||||
EMOJI_MARSEYS = False
|
||||
EMOJI_SRCS = ['files/assets/emojis.lgbdropthet.json']
|
||||
|
|
|
@ -230,7 +230,8 @@ def sanitize(sanitized, edit=False):
|
|||
|
||||
sanitized = link_fix_regex.sub(r'\1https://\2', sanitized)
|
||||
|
||||
sanitized = command_regex.sub(command_regex_matcher, sanitized)
|
||||
if FEATURES['MARKUP_COMMANDS']:
|
||||
sanitized = command_regex.sub(command_regex_matcher, sanitized)
|
||||
|
||||
sanitized = markdown(sanitized)
|
||||
|
||||
|
|
|
@ -116,6 +116,7 @@ Text 2
|
|||
<td>:marseyrandom:</td>
|
||||
<td>???</td>
|
||||
</tr>
|
||||
{% if FEATURES['MARKUP_COMMANDS'] -%}
|
||||
<tr>
|
||||
<td>Random Fortune</td>
|
||||
<td>#fortune</td>
|
||||
|
@ -131,6 +132,12 @@ Text 2
|
|||
<td>#factcheck</td>
|
||||
<td>???</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Roll</td>
|
||||
<td>#roll</td>
|
||||
<td>A number 1–9999.</td>
|
||||
</tr>
|
||||
{%- endif %}
|
||||
<tr>
|
||||
<td>
|
||||
Poll — Pick Multiple<br>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
{% endif %}
|
||||
|
||||
<p class="text-center text-md mb-4">
|
||||
<a class="sidebar-link" href="/badges" data-bs-toggle="tooltip" data-bs-placement="top" title="Badges"><i class="fas fa-hexagon"></i></a>
|
||||
<a class="sidebar-link" href="/admins" data-bs-toggle="tooltip" data-bs-placement="top" title="Admins"><i class="fas fa-crown"></i></a>
|
||||
<a class="sidebar-link" href="/log" data-bs-toggle="tooltip" data-bs-placement="top" title="Moderation Log"><i class="fas fa-scroll-old"></i></a>
|
||||
<a class="sidebar-link" href="/transfers" data-bs-toggle="tooltip" data-bs-placement="top" title="Transfers"><i class="fas fa-arrow-right-arrow-left"></i></a>
|
||||
|
|
Loading…
Reference in New Issue