From 58c50302f103362e8cb2cb3e15cb368cf105668f Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Tue, 5 Jul 2011 17:07:09 +0200 Subject: [PATCH] Fixes some problems with the new API --- node/PadMessageHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/PadMessageHandler.js b/node/PadMessageHandler.js index 786bfd37a..b9467e397 100644 --- a/node/PadMessageHandler.js +++ b/node/PadMessageHandler.js @@ -193,7 +193,7 @@ function handleSuggestUserName(client, message) throw "suggestUserName Message has no unnamedId!"; } - var padId = session2pad[client.sessionId]; + var padId = session2pad[client.id]; //search the author and send him this message for(var i in pad2sessions[padId]) @@ -704,7 +704,7 @@ function handleClientReady(client, message) if(sessionID != client.id) { //Send this Session the Notification about the new user - socketio.clients[sessionID].json.send(messageToTheOtherUsers); + socketio.sockets.sockets[sessionID].json.send(messageToTheOtherUsers); //Send the new User a Notification about this other user var messageToNotifyTheClientAboutTheOthers = {