var _ = require('underscore');
var util = require('util');

exports.setup = function() {
	global.commands = {};
};

exports.handle = function(evt, msg) {
	if(msg.slice(0, 1) != "!")
		return;
	var m = msg.match(/^!([A-Za-z0-9]+)(?: (.+))?$/);
	if(!m)
		return;
	if(global.commands[m[1].lower()])
		global.commands[m[1].lower()](evt, m[2]);
	else
		console.log("[commands.js] unknown command: '!%s'", m[1]);
};

@@ -279,21 +279,27 @@
 ds%5Bm%5B1%5D.
-l
+toL
 ower
+Case
 ()%5D)%0A%09%09g
@@ -322,13 +322,19 @@
 %5B1%5D.
-l
+toL
 ower
+Case
 ()%5D(

Fix error. Thought this was Python for a second xD