refactor: 恢复命令权限设置

This commit is contained in:
RockChinQ
2024-02-06 23:57:21 +08:00
parent 2a913ed24c
commit b5b67ad958
5 changed files with 24 additions and 11 deletions
+1 -4
View File
@@ -131,14 +131,11 @@ class PlatformManager:
async def send(self, event, msg, check_quote=True, check_at_sender=True):
if check_at_sender and self.ap.platform_cfg.data['at-sender']:
if check_at_sender and self.ap.platform_cfg.data['at-sender'] and isinstance(event, GroupMessage):
msg.insert(
0,
Plain(" \n")
)
# 当回复的正文中包含换行时,quote可能会自带at,此时就不再单独添加at,只添加换行
# if "\n" not in str(msg[1]) or self.ap.platform_cfg.data['platform-adapter'] == 'nakuru':
msg.insert(
0,
At(