diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-15 16:13:29 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-15 17:07:56 -0500 |
commit | f54329f9d6fa5d02944c60a87a3393023bfae9fd (patch) | |
tree | 0396656426facefaf232827380ab0b09151b37e5 /app/lib | |
parent | 7ce875169216914e46aa5bbbd3cc639f65678945 (diff) |
alias `quit` bangtag to `part` + `part:reply-guy-mode` egg
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 23bdfa61f..0029dced9 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -20,6 +20,7 @@ class Bangtags 'leave' => ['thread'], 'part' => ['thread'], + 'quit' => ['thread'], } @aliases = { @@ -268,9 +269,14 @@ class Bangtags chunk = nil next if cmd[1].nil? case cmd[1].downcase - when 'leave', 'part' + when 'leave', 'part', 'quit' next if status.conversation_id.nil? @account.mute_conversation!(status.conversation) + if %w(replyguy reply-guy reply-guy-mode).include?(cmd[2]) + rum = Account.find_remote('RumPartov', 'weirder.earth') + next unless rum.present? + rum.mentions.where(status: status).first_or_create(status: status) + end when 'reall' if status.conversation_id.present? participants = Status.where(conversation_id: status.conversation_id) |