Skip to content

Commit

Permalink
thats a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianpike committed Oct 29, 2011
1 parent aec7b26 commit 14703f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/karma.coffee
Expand Up @@ -4,9 +4,9 @@
Sys = require "sys"

module.exports = (robot) ->
robot.hear /karma (\w+)/, (msg) ->
robot.hear /karma ?(\w+)/, (msg) ->
if msg.match[1]
msg.send(robot.brain.data.karma[object])
msg.send(robot.brain.data.karma[msg.match[1]])
else
msg.send(robot.brain.data.karma)
end
Expand Down
2 changes: 1 addition & 1 deletion scripts/markov.coffee
Expand Up @@ -3,7 +3,7 @@ markov = markov_lib()

module.exports = (robot) ->
robot.hear /(.+)/i, (msg) ->
if /^markov/i.exec(msg)
if /^markov/i.exec(msg.match[1])
return
msg.send '-seeding ' + msg.match[1]
markov.seed msg.match[1]
Expand Down

0 comments on commit 14703f2

Please sign in to comment.