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

@ -11,6 +11,8 @@ var regex = function(dbot) {
last,
replacement;
if(!replaceWith) replaceWith = "";
if(q[1] != null) {
var user = q[1];
last = this.last[event.channel.name][user];