diff --git a/modules/regex/regex.js b/modules/regex/regex.js index 0444950..48b8e21 100644 --- a/modules/regex/regex.js +++ b/modules/regex/regex.js @@ -10,6 +10,8 @@ var regex = function(dbot) { replaceWith = q[3], last, replacement; + + if(!replaceWith) replaceWith = ""; if(q[1] != null) { var user = q[1];