fix(process.py): 触发事件时错误的管理员判断逻辑

This commit is contained in:
Rock Chin
2023-02-03 14:15:40 +08:00
parent 133d8bbeef
commit 64c587c17d

View File

@@ -75,7 +75,7 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
'command': text_message[1:].strip().split(' ')[0],
'params': text_message[1:].strip().split(' ')[1:],
'text_message': text_message,
'is_admin': sender_id is config.admin_qq,
'is_admin': sender_id == config.admin_qq,
}
event = plugin_host.emit(plugin_models.PersonCommandSent
if launcher_type == 'person'