mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
fix 消息定向发送时不检查消息类型匹配
This commit is contained in:
@@ -210,8 +210,8 @@ class _MessageBase(ServiceBase[TService, NotificationConf]):
|
|||||||
# 检查消息来源
|
# 检查消息来源
|
||||||
if message.source and message.source != source:
|
if message.source and message.source != source:
|
||||||
return False
|
return False
|
||||||
# 检查消息类型开关
|
# 不是定向发送时,检查消息类型开关
|
||||||
if message.mtype:
|
if not message.userid and message.mtype:
|
||||||
conf = self.get_config(source)
|
conf = self.get_config(source)
|
||||||
if conf:
|
if conf:
|
||||||
switchs = conf.switchs or []
|
switchs = conf.switchs or []
|
||||||
|
|||||||
Reference in New Issue
Block a user