Fixes 2 API Problems

This commit is contained in:
Peter 'Pita' Martischka 2011-07-06 22:43:28 +02:00
parent ac1858f8ec
commit 41f0feab91
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ function handleSuggestUserName(client, message)
{
if(sessioninfos[pad2sessions[padId][i]].author == message.data.payload.unnamedId)
{
socketio.clients[pad2sessions[padId][i]].send(message);
socketio.sockets.sockets[pad2sessions[padId][i]].send(message);
break;
}
}
@ -416,7 +416,7 @@ function handleUserChanges(client, message)
apool: forWire.pool,
author: author}};
socketio.clients[session].json.send(wireMsg);
socketio.sockets.sockets[session].json.send(wireMsg);
}
callback(null);