From f54329f9d6fa5d02944c60a87a3393023bfae9fd Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 15 Aug 2019 16:13:29 -0500 Subject: alias `quit` bangtag to `part` + `part:reply-guy-mode` egg --- app/lib/bangtags.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit