Skip to content

Commit fed9e0a

Browse files
committed
fix
1 parent 460823f commit fed9e0a

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

dice/builtin_commands.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,6 @@ func (d *Dice) registerCoreCommands() {
17911791
// 开启相关扩展
17921792
ei := ctx.Dice.ExtFind(name, false)
17931793
if ei != nil {
1794-
ctx.Group.ClearUserDisabledFlag(ei.Name)
17951794
ctx.Group.ExtActive(ei)
17961795
}
17971796
}
@@ -2228,10 +2227,6 @@ func (d *Dice) registerCoreCommands() {
22282227
onText = "关"
22292228
}
22302229
extReply := ctx.Dice.ExtFind("reply", false)
2231-
// 开启扩展,应清除手动禁用标记
2232-
if ctx.Group.ExtDisabledByUser != nil {
2233-
delete(ctx.Group.ExtDisabledByUser, "reply")
2234-
}
22352230
ctx.Group.ExtActive(extReply)
22362231
ReplyToSender(ctx, msg, fmt.Sprintf("已在当前群开启自定义回复(%s➯开)。\n此指令等价于.ext reply on", onText))
22372232
case "off":
@@ -2297,10 +2292,6 @@ func setRuleByName(ctx *MsgContext, name string) {
22972292
// 开启相关扩展
22982293
ei := ctx.Dice.ExtFind(name, false)
22992294
if ei != nil {
2300-
// 开启扩展,应清除手动禁用标记
2301-
if ctx.Group.ExtDisabledByUser != nil {
2302-
delete(ctx.Group.ExtDisabledByUser, ei.Name)
2303-
}
23042295
ctx.Group.ExtActive(ei)
23052296
}
23062297
}

0 commit comments

Comments
 (0)