Explorar o código

修复自己艾特自己会死循环的问题

chenzhenkun %!s(int64=2) %!d(string=hai) anos
pai
achega
89f438208a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      channel/chat_channel.py

+ 1 - 1
channel/chat_channel.py

@@ -103,7 +103,7 @@ class ChatChannel(Channel):
                     flag = True
                     if match_prefix:
                         content = content.replace(match_prefix, "", 1).strip()
-                if context["msg"].is_at:
+                if context["msg"].is_at and context["msg"].to_user_id != context["msg"].actual_user_id:
                     logger.info("[WX]receive group at")
                     if not conf().get("group_at_off", False):
                         flag = True