Fix message typos

This commit is contained in:
Joe Corneli 2011-11-19 19:21:23 +00:00
parent a9540cb8b7
commit 0aa56136fe
3 changed files with 9 additions and 9 deletions

View File

@ -136,7 +136,7 @@ exports.handleDisconnect = function(client)
{ {
if(pad2sessions[sessionPad][i] == client.id) if(pad2sessions[sessionPad][i] == client.id)
{ {
pad2sessions[sessionPad].splice(i, 1); delete pad2sessions[sessionPad][i];
break; break;
} }
} }
@ -190,10 +190,10 @@ exports.handleMessage = function(client, message)
{ {
handleSuggestUserName(client, message); handleSuggestUserName(client, message);
} }
//if the message type is unkown, throw an exception //if the message type is unknown, throw an exception
else else
{ {
messageLogger.warn("Dropped message, unkown Message Type " + message.type + ": " + JSON.stringify(message)); messageLogger.warn("Dropped message, unknown Message Type " + message.type);
} }
} }
@ -600,22 +600,22 @@ function handleClientReady(client, message)
//check if all ok //check if all ok
if(!message.token) if(!message.token)
{ {
messageLogger.warn("Dropped message, CLIENT_READY message has no token!"); messageLogger.warn("Dropped message, CLIENT_READY Message has no token!");
return; return;
} }
if(!message.padId) if(!message.padId)
{ {
messageLogger.warn("Dropped message, CLIENT_READY message has no padId!"); messageLogger.warn("Dropped message, CLIENT_READY Message has no padId!");
return; return;
} }
if(!message.protocolVersion) if(!message.protocolVersion)
{ {
messageLogger.warn("Dropped message, CLIENT_READY message has no protocolVersion!"); messageLogger.warn("Dropped message, CLIENT_READY Message has no protocolVersion!");
return; return;
} }
if(message.protocolVersion != 2) if(message.protocolVersion != 2)
{ {
messageLogger.warn("Dropped message, CLIENT_READY message has an unkown protocolVersion '" + message.protocolVersion + "'!"); messageLogger.warn("Dropped message, CLIENT_READY Message has a unknown protocolVersion '" + message.protocolVersion + "'!");
return; return;
} }

View File

@ -128,7 +128,7 @@ exports.setSocketIO = function(_socket)
//drop message //drop message
else else
{ {
messageLogger.warn("Droped message cause of bad permissions:" + stringifyWithoutPassword(message)); messageLogger.warn("Dropped message cause of bad permissions:" + stringifyWithoutPassword(message));
} }
} }
}); });

View File

@ -77,7 +77,7 @@ exports.handleMessage = function(client, message)
//if the message type is unkown, throw an exception //if the message type is unkown, throw an exception
else else
{ {
messageLogger.warn("Dropped message, unkown Message Type: '" + message.type + "'"); messageLogger.warn("Dropped message, unknown Message Type: '" + message.type + "'");
} }
} }