From 8ca479629514d34d7d5ca7f29fac298e62d24fa3 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 5 Aug 2013 15:58:39 +0000 Subject: [PATCH] fix the thingy whatsit (good commit message eh) --- modules/regex/regex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/regex/regex.js b/modules/regex/regex.js index a3a6c6f..ba11435 100644 --- a/modules/regex/regex.js +++ b/modules/regex/regex.js @@ -17,12 +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); + replacement = replacement.replace(/^.ACTION/, user).replace("\x01", ''); 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); + replacement = replacement.replace(/^.ACTION/, event.user).replace("\x01", ''); if(replacement != last) event.reply(event.user + " meant: " + replacement); } } else {