function GreetPlugin(bot) {
	var self = this;
	self.name = "greet";
	self.help = "Greet plugin";
	
	self.midre = /\b(yo(?:[\s-]yo)*|h[ea]l{2,}o+|h[ae]+[jiy]+[aol]*|hi+(?:-?y[ao]+)?|howdy|hola|bonjour|(?:what(?:\')?s\s|s)up|fuck(?:ing|\soff|\syou(?:\stoo|2)?)?)\b/;

	self.events = {
		"message": function(nick, to, text) {
			var re = new RegExp("(\\b" + bot.nick + "[\\s,:]+)?" + self.midre.source + "(\\s+" + bot.nick + "\\b)?", "i");
			var m = text.match(re);
			
			
			/*if (m && (m[1] !== undefined || m[3] !== undefined)) {
				bot.say(to, m[2] + " " + nick);
			}*/

			if (m) {
				if (m[1] !== undefined)
					bot.say(to, m[1].replace(bot.nick, nick) + m[2]);
				else if (m[3] !== undefined)
					bot.say(to, m[2] + m[3].replace(bot.nick, nick));
			}
		},

		"action": function(nick, to, text, message) { // undocumented event, message is undefined for no reason
			var text2 = text.replace(bot.nick, nick);
			if (text != text2) { // something was replaced, simbot was mentioned
				bot.action(to, text2);
			}
		}
	};
}

module.exports = GreetPlugin;

@@ -153,17 +153,16 @@
 jiy%5D+%5Bao
-l
 %5D*%7Chi+(?

don't say "hail"