mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
fix the thingy whatsit (good commit message eh)
This commit is contained in:
parent
36da81d003
commit
8ca4796295
@ -17,12 +17,12 @@ var regex = function(dbot) {
|
|||||||
var user = q[1];
|
var user = q[1];
|
||||||
last = this.last[event.channel.name][user];
|
last = this.last[event.channel.name][user];
|
||||||
replacement = last.replace(toMatch, replaceWith);
|
replacement = last.replace(toMatch, replaceWith);
|
||||||
replacement = replacement.replace("\x01", '').replace(/^.ACTION/, user);
|
replacement = replacement.replace(/^.ACTION/, user).replace("\x01", '');
|
||||||
if(replacement != last) event.reply(event.user + " thinks " + user + " meant: " + replacement);
|
if(replacement != last) event.reply(event.user + " thinks " + user + " meant: " + replacement);
|
||||||
} else {
|
} else {
|
||||||
last = this.last[event.channel.name][event.user];
|
last = this.last[event.channel.name][event.user];
|
||||||
replacement = last.replace(toMatch, replaceWith);
|
replacement = last.replace(toMatch, replaceWith);
|
||||||
replacement = replacement.replace("\x01", '').replace(/^.ACTION/, event.user);
|
replacement = replacement.replace(/^.ACTION/, event.user).replace("\x01", '');
|
||||||
if(replacement != last) event.reply(event.user + " meant: " + replacement);
|
if(replacement != last) event.reply(event.user + " meant: " + replacement);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user