about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
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'