diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-17 15:52:24 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-17 15:52:24 -0500 |
commit | 6cb00bc91d8899d9b69d15e79bb24b41f77d0bca (patch) | |
tree | 7007325691a1edb5b58b50782c6ba7609272c605 /app/lib | |
parent | d3357a90fe1498f426a50e078ae8d678d8c6ec57 (diff) |
pretty-format `i:am:list` & make output local-only
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 6de8fc5d5..54b7d46af 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -390,10 +390,11 @@ class Bangtags next elsif who == 'list' @status.visibility = :direct + @status.local_only = true @status.content_type = 'text/markdown' names = @vars.keys.select { |k| k.start_with?('_they:are:') } - names.map! { |k| " <code>#{k[10..-1]}</code> is <em>#{@vars[k]}</em>" } - @chunks << (['`i:am:list`:'] + names).join("\n") + "\n" + names.map! { |k| "<code>#{k[10..-1]}</code> is <em>#{@vars[k]}</em>" } + @chunks << (["\n# <code>#!</code><code>i:am:list</code>:\n<hr />\n"] + names).join("\n") + "\n" next end name = who.downcase.gsub(/\s+/, '').strip |