Skip to content

Conversation

@RikaCelery
Copy link
Contributor

No description provided.

@RikaCelery
Copy link
Contributor Author

oops

if plugin != nil {
key = plugin.Key
} else { // plugin 为空,代表所有插件
key = AllPluginKey
Copy link
Contributor Author

@RikaCelery RikaCelery Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看了一下这里没有这种情况出现

// 处理插件名
plugin = findPluginByName(args[0])
if plugin == nil {
ctx.Send(fmt.Sprintf("没有叫%v的功能哦,可以看看帮助", args[0]))
return 0, nil, period, fmt.Errorf("no such plugin %v", args[0])
}

if plugin != nil {
key = plugin.Key
} else { // plugin 为空,代表所有插件
key = AllPluginKey
Copy link
Contributor Author

@RikaCelery RikaCelery Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上,传入参数不可能为nil

// 处理插件名
plugin = findPluginByName(args[0])
if plugin == nil {
ctx.Send(fmt.Sprintf("没有叫%v的功能哦,可以看看帮助", args[0]))
return 0, nil, period, fmt.Errorf("no such plugin %v", args[0])
}

@RikaCelery RikaCelery marked this pull request as draft February 10, 2025 02:52
fix: 切换白名单后所有插件被禁用
@RikaCelery
Copy link
Contributor Author

#33 合了再弄,conflict太多了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant