mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-17 01:46:07 +00: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],
|
'command': text_message[1:].strip().split(' ')[0],
|
||||||
'params': text_message[1:].strip().split(' ')[1:],
|
'params': text_message[1:].strip().split(' ')[1:],
|
||||||
'text_message': text_message,
|
'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
|
event = plugin_host.emit(plugin_models.PersonCommandSent
|
||||||
if launcher_type == 'person'
|
if launcher_type == 'person'
|
||||||
|
|||||||
Reference in New Issue
Block a user