replaceWith empty if no q[3]

This commit is contained in:
Luke Slater 2013-01-22 12:22:55 +01:00
parent 5b965657bb
commit 6e08b184f6

View File

@ -10,6 +10,8 @@ var regex = function(dbot) {
replaceWith = q[3],
last,
replacement;
if(!replaceWith) replaceWith = "";
if(q[1] != null) {
var user = q[1];