mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Update server.js
This commit is contained in:
committed by
GitHub
parent
5186bbd4f1
commit
c3ca04a747
@@ -353,7 +353,7 @@ io.on('connection', function(socket){
|
|||||||
|
|
||||||
socket.on('list', function(msg)
|
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 list = msg.channel;
|
||||||
var pass = decrypt_string(socketid, msg.pass);
|
var pass = decrypt_string(socketid, msg.pass);
|
||||||
|
|||||||
Reference in New Issue
Block a user