exports.commands = {
	k: 'kick',
	kick: function (target, room, user) {
		if (!target) return;
		target = this.splitTarget(target);
		var targetUser = this.targetUser;
		if (!targetUser || !targetUser.connected) {
			return this.sendReply("User " + this.targetUsername + " not found.");
		}
		if (!this.can('kick', targetUser, room)) return false;
		var msg = "kicked by " + user.name + (target ? " (" + target + ")" : "") + ".";
		this.addModCommand("" + targetUser.name + " was " + msg);
		targetUser.popup("You have been " + msg);
		targetUser.leaveRoom(room);
	}
};

@@ -77,21 +77,163 @@
  (!t
-arget) return
+his.can('kick', targetUser, room)) return false;%0A%09%09if (!this.canTalk()) return false;%0A%09%09if (!target) return this.sendReply(%22Usage: /kick %5Buser%5D, %5Breason%5D%22)
 ;%0A%09%09
@@ -351,13 +351,8 @@
 ed) 
-%7B%0A%09%09%09
 retu
@@ -421,69 +421,8 @@
 %22);%0A
-%09%09%7D%0A%09%09if (!this.can('kick', targetUser, room)) return false;%0A
 %09%09va
@@ -524,13 +524,8 @@
 and(
-%22%22 + 
 targ
@@ -625,16 +625,19 @@
 oom(room
+.id
 );%0A%09%7D%0A%7D;

Clean up kick.js