Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
say command
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 4, 2012
1 parent 2da98c8 commit d314be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brains.js
Expand Up @@ -269,7 +269,7 @@ commands.say = function (m, who, what, where, words) {

// the thing to say is everything after the first two words.
var msg = m.what.replace(/^\s*say\s*/i, "")
var mt = m.split(/[\s\t]*/)[0]
var mt = msg.split(/[\s\t]*/)[0]
msg = msg.substr(mt.length).trim()
console.error("say", [mt, msg])

Expand Down

0 comments on commit d314be0

Please sign in to comment.