Skip to content

白名单运行#34

Draft
RikaCelery wants to merge 2 commits into
RicheyJang:masterfrom
RikaCelery:feat/whitelist
Draft

白名单运行#34
RikaCelery wants to merge 2 commits into
RicheyJang:masterfrom
RikaCelery:feat/whitelist

Conversation

@RikaCelery

Copy link
Copy Markdown
Contributor

No description provided.

@RikaCelery

Copy link
Copy Markdown
Contributor Author

oops

Comment thread basic/ban/public.go
if plugin != nil {
key = plugin.Key
} else { // plugin 为空,代表所有插件
key = AllPluginKey

@RikaCelery RikaCelery Feb 10, 2025

Copy link
Copy Markdown
Contributor Author

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])
}

Comment thread basic/ban/public.go
if plugin != nil {
key = plugin.Key
} else { // plugin 为空,代表所有插件
key = AllPluginKey

@RikaCelery RikaCelery Feb 10, 2025

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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