Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Added missing function return if there are to many users
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeon committed Feb 23, 2017
1 parent 1b6b325 commit c686775
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/roses.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ handleMessage = (message, callback) ->

if usernames.length > 10
usernames = usernames.splice 0, 10
api.replyTo message, __("You must not enter more than 10 usernames in one command!"), no
api.replyTo message, __("You must not enter more than 10 usernames in one command!"), no, callback
return

async.eachSeries usernames, (username, callback) ->
db.getUserByUsername username, (err, user) ->
Expand Down

0 comments on commit c686775

Please sign in to comment.