forked from GitHub/dbot
replaceWith empty if no q[3]
This commit is contained in:
parent
5b965657bb
commit
6e08b184f6
@ -11,6 +11,8 @@ var regex = function(dbot) {
|
|||||||
last,
|
last,
|
||||||
replacement;
|
replacement;
|
||||||
|
|
||||||
|
if(!replaceWith) replaceWith = "";
|
||||||
|
|
||||||
if(q[1] != null) {
|
if(q[1] != null) {
|
||||||
var user = q[1];
|
var user = q[1];
|
||||||
last = this.last[event.channel.name][user];
|
last = this.last[event.channel.name][user];
|
||||||
|
Loading…
Reference in New Issue
Block a user