This commit is contained in:
xyz 2025-05-05 22:57:18 +08:00
parent ab9506c870
commit 77e633a742

View file

@ -44,8 +44,13 @@ export default class Button {
if (global.zzzCurrentCharName) { if (global.zzzCurrentCharName) {
charName = global.zzzCurrentCharName; charName = global.zzzCurrentCharName;
} else { } else {
const match = e.match || e.msg.match(/^(%||#)(.+?)面板$/);
const parsedName = match?.[2]?.trim();
if (parsedName && !['更新', '刷新', '列表'].includes(parsedName)) {
charName = parsedName;
return null; return null;
} }
}
const buttonRows = [ const buttonRows = [