Merge pull request #334 from moggers87/patch-1

Remove ^A from ctcp actions
This commit is contained in:
reality 2013-03-28 15:10:30 -07:00
commit 24e6012feb

View File

@ -99,6 +99,7 @@ var spelling = function(dbot) {
var fix = this.last[event.channel.name][candidate].replace(winner, correction); var fix = this.last[event.channel.name][candidate].replace(winner, correction);
if (/^.ACTION/.test(fix)) { if (/^.ACTION/.test(fix)) {
fix = fix.replace(/^.ACTION/, '/me'); fix = fix.replace(/^.ACTION/, '/me');
fix = fix.replace("\x01", '');
} }
this.last[event.channel.name][candidate] = fix; this.last[event.channel.name][candidate] = fix;
var output = { var output = {