Skip to content

Commit

Permalink
Revert "customcommands: relax restriction on execCC from command temp…
Browse files Browse the repository at this point in the history
…lates (botlabs-gg#1684)"

This reverts commit cd13c54.
  • Loading branch information
ashishjh-bst committed Jun 28, 2024
1 parent f03f5e8 commit 3f743b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion customcommands/tmplextensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (pa *ParsedArgs) IsSet(index int) interface{} {
// or schedules a custom command to be run in the future sometime with the provided data placed in .ExecData
func tmplRunCC(ctx *templates.Context) interface{} {
return func(ccID int, channel interface{}, delaySeconds interface{}, data interface{}) (string, error) {
if ctx.ExecutedFrom == templates.ExecutedFromNestedCommandTemplate {
if ctx.ExecutedFrom == templates.ExecutedFromCommandTemplate || ctx.ExecutedFrom == templates.ExecutedFromNestedCommandTemplate {
return "", nil
}

Expand Down

0 comments on commit 3f743b0

Please sign in to comment.