Skip to content

Commit

Permalink
Check for missing payload on CLIENT_MESSAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
luto committed Jan 30, 2013
1 parent f2742c5 commit 7e48e02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/handler/PadMessageHandler.js
Expand Up @@ -210,6 +210,7 @@ exports.handleMessage = function(client, message)
} else if (message.data.type == "SAVE_REVISION") {
handleSaveRevisionMessage(client, message);
} else if (message.data.type == "CLIENT_MESSAGE" &&
message.data.payload != null &&
message.data.payload.type == "suggestUserName") {
handleSuggestUserName(client, message);
} else {
Expand Down

0 comments on commit 7e48e02

Please sign in to comment.