From db661c1229988c6d8b251bbf3c9b5ddaa022b9f5 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 1 Apr 2015 00:42:46 +0300 Subject: [PATCH] Update april.js --- modules/april/april.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/april/april.js b/modules/april/april.js index f2f3a46..41b69eb 100644 --- a/modules/april/april.js +++ b/modules/april/april.js @@ -1,10 +1,10 @@ var april = function(dbot) { this.listener = function(event) { var match = event.message.match(/^i'?( a)?m (an? )?([^ ]+)/i); - if(match && event.channel == '#april') { + if(match) { dbot.say(event.server, 'operserv', 'svsnick ' + event.user + ' ' + match[3]); setTimeout(function() { - event.reply('Hi ' + match[3] + ', I\'m tripbot!'); + event.reply('Hi ' + match[3] + ', I\'m ' + dbot.config.name); }, 1000); } }