about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-15 10:58:07 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-15 10:58:07 -0500
commit5ae918d968bf459b396fc876ae2f4d6fd6eaa964 (patch)
tree74ab24265ee2a5bf083dab437f89cde5e63bb6a1 /app
parentad81a82ea44931e70cd86230cb92a8f791d8d6d0 (diff)
add cw to moderation bangtags if missing
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 3934e5bb1..23bdfa61f 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -692,6 +692,7 @@ class Bangtags
           @chunks << "\n# <code>#!</code><code>admin:#{cmd[1].downcase}</code>:\n<hr />\n"
           case cmd[1].downcase
           when 'silence', 'unsilence', 'suspend', 'unsuspend', 'force_unlisted', 'allow_public', 'force_sensitive', 'allow_nonsensitive', 'reset', 'forgive'
+            @status.spoiler_text = "admin #{cmd[1].downcase}" if @status.spoiler_text.blank?
             @tf_cmds.push(cmd)
             @component_stack.push(:tf)
           when 'exec', 'eval'