From f15f14287bec35fe904cca17bba1d0c1f7bf8561 Mon Sep 17 00:00:00 2001 From: Satty9361 <56998894+Satty9361@users.noreply.github.com> Date: Thu, 27 Feb 2020 11:01:34 +0100 Subject: [PATCH] Remove function calls limit for tmplDelMessageReaction (#647) --- common/templates/context_funcs.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/templates/context_funcs.go b/common/templates/context_funcs.go index 236c8ae92d..33fff79d21 100644 --- a/common/templates/context_funcs.go +++ b/common/templates/context_funcs.go @@ -635,9 +635,7 @@ func (c *Context) tmplDelMessage(channel, msgID interface{}, args ...interface{} //needs channelID, messageID, userID, list of emojis - up to twenty //can be run once per CC. func (c *Context) tmplDelMessageReaction(values ...reflect.Value) (reflect.Value, error) { - if c.IncreaseCheckCallCounter("user_deletes_reaction_messages", 1) { - return reflect.Value{}, ErrTooManyCalls - } + f := func(args []reflect.Value) (reflect.Value, error) { if len(args) < 4 { return reflect.Value{}, errors.New("Not enough arguments (need channelID, messageID, userID, emoji)")