Merge pull request #539 from agjmills/master

fixed bug with ACTION, replaced with users name
This commit is contained in:
Luke Slater 2013-08-05 08:56:10 -07:00
commit 36da81d003

View File

@ -17,10 +17,12 @@ var regex = function(dbot) {
var user = q[1];
last = this.last[event.channel.name][user];
replacement = last.replace(toMatch, replaceWith);
replacement = replacement.replace("\x01", '').replace(/^.ACTION/, user);
if(replacement != last) event.reply(event.user + " thinks " + user + " meant: " + replacement);
} else {
last = this.last[event.channel.name][event.user];
replacement = last.replace(toMatch, replaceWith);
replacement = replacement.replace("\x01", '').replace(/^.ACTION/, event.user);
if(replacement != last) event.reply(event.user + " meant: " + replacement);
}
} else {