Skip to content

Commit

Permalink
Remove function calls limit for tmplDelMessageReaction (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satty9361 authored Feb 27, 2020
1 parent cbc48ed commit f15f142
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/templates/context_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down

0 comments on commit f15f142

Please sign in to comment.