fix(loader): 修复群功能黑白名单误影响私聊的问题#219
Open
Temmie0125 wants to merge 1 commit into
Open
Conversation
在群聊配置(config/group)中,默认群配置的黑白名单功能会错误影响私信使用。 私聊消息不应受到群聊配置的限制,现增加私聊判断,确保群聊配置仅对群聊生效。
Owner
|
这部分配置是正确的,无需修改,私聊单独配置可以考虑加上。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
在群聊配置(config/group)中,默认群配置的黑白名单功能会错误影响私信使用。
复现步骤
config/group.yaml的default下禁用某个功能A;功能A的命令;功能A被错误地拦截。预期行为
私聊不应受到群聊配置的影响,功能应正常执行。
解决方案
私聊消息不应受到群聊配置的限制,现增加私聊判断,确保群聊配置仅对群聊生效。
额外建议
可加入类似群配置的私聊配置,控制默认情况下的私聊功能(同时,确保主人和白名单用户不受限制)