From c93362732eed9f60040fe74a8cc3535df563db5d Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Tue, 14 May 2013 00:43:04 +1200 Subject: Fix typo --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b529caf..5a2c7c2 100644 --- a/index.js +++ b/index.js @@ -74,7 +74,7 @@ sessionSockets.on('connection', function (err, socket, session) { socket.emit('users', { users: users }); /* Set up various handlers for the new socket. */ socket.on('nick', function (d) { - if (!(typeof(d) == "object" && nick in d)) { + if (!(typeof(d) == "object" && "nick" in d)) { return; } /* TODO Collision checking? */ @@ -87,7 +87,7 @@ sessionSockets.on('connection', function (err, socket, session) { }); }); socket.on('filter', function(d) { - if (!(typeof(d) == "object" && filters in d)) { + if (!(typeof(d) == "object" && "filters" in d)) { return; } users[session.nid].filters = d.filters; -- cgit v1.2.3-60-g2f50