3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Remove ^A from ctcp actions

I'll have my pony now.
This commit is contained in:
Matt Molyneaux 2013-03-28 21:20:41 +00:00
parent 3c225defee
commit 141cab407d

View File

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