Merge branch 'settings' into development
[KiwiIRC.git] / server / client.js
index a288c88a3aa48eac9648523b112a74075d2e834b..6fee1dc5cacc0803b5369c6a5eef4a9a4ab0b439 100755 (executable)
@@ -72,7 +72,7 @@ Client.prototype.dispose = function () {
 };
 
 function handleClientMessage(msg, callback) {
-    var server, args, obj, channels, keys;
+    var server;
 
     // Make sure we have a server number specified
     if ((msg.server === null) || (typeof msg.server !== 'number')) {
@@ -103,11 +103,10 @@ function handleClientMessage(msg, callback) {
 
 
 function kiwiCommand(command, callback) {
-    var that = this;
-    
     if (typeof callback !== 'function') {
         callback = function () {};
     }
+
     switch (command.command) {
         case 'connect':
             if (command.hostname && command.port && command.nick) {