Update server.js

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-05 09:16:18 +02:00
committed by GitHub
parent 5186bbd4f1
commit c3ca04a747

View File

@@ -353,7 +353,7 @@ io.on('connection', function(socket){
socket.on('list', function(msg)
{
if(typeof(msg) === 'object' && msg !== undefined && msg !== null && msg.hasOwnProperty("channel"))
if(typeof(msg) === 'object' && msg !== undefined && msg !== null && msg.hasOwnProperty("channel") && msg.hasOwnProperty('pass'))
{
var list = msg.channel;
var pass = decrypt_string(socketid, msg.pass);