Skip to content

Commit

Permalink
customcommands: relax restriction on execCC from command templates (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jo3-l committed Jun 27, 2024
1 parent ce8c7a6 commit 771246d
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.ExecutedFromCommandTemplate || ctx.ExecutedFrom == templates.ExecutedFromNestedCommandTemplate {
if ctx.ExecutedFrom == templates.ExecutedFromNestedCommandTemplate {
return "", nil
}

Expand Down

0 comments on commit 771246d

Please sign in to comment.