about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/lib/bangtags.rb8
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)