mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 03:15:06 +08:00
fix(process.py): 触发事件时错误的管理员判断逻辑
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user