optinal single quote

This commit is contained in:
reality 2015-03-31 18:48:57 +00:00
parent 999b6f44ad
commit 3347b67cea

View File

@ -1,6 +1,6 @@
var april = function(dbot) {
this.listener = function(event) {
var match = event.message.match(/^i'm (an? )?([^ ]+)$/i);
var match = event.message.match(/^i'?m (an? )?([^ ]+)$/i);
if(match && event.channel == '#april') {
dbot.say(event.server, 'operserv', 'svsnick ' + event.user + ' ' + match[2]);
setTimeout(function() {