Skip to content

Commit

Permalink
fix blank object syndrome
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianpike committed Oct 28, 2011
1 parent 18d4e2f commit 806e93b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/karma.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = (robot) ->
robot.hear /(\w*)(\+\+|\-\-)$/i, (msg) ->
object = msg.match[1]
action = msg.match[2]
karma(robot, msg, object, action)
if object
karma(robot, msg, object, action)

karma = (robot, msg, object, action) ->
if typeof(robot.brain.data.karma) is 'undefined'
Expand Down

0 comments on commit 806e93b

Please sign in to comment.