mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated some minor server stuff
This commit is contained in:
@@ -207,10 +207,17 @@ io.on('connection', function(socket){
|
||||
}
|
||||
});
|
||||
|
||||
socket.on("offline", function(status){
|
||||
socket.on("offline", function(msg){
|
||||
if(!msg.hasOwnProperty('status') && !msg.hasOwnProperty('channel')) {
|
||||
socket.emit("update_required");
|
||||
return;
|
||||
}
|
||||
var status = msg.status;
|
||||
var channel = msg.channel;
|
||||
if(status){
|
||||
in_list = false;
|
||||
offline = true;
|
||||
if(channel != "") coll = channel;
|
||||
if(coll !== undefined && lists[coll] !== undefined && contains(lists[coll], guid))
|
||||
{
|
||||
var index = lists[coll].indexOf(guid);
|
||||
|
||||
Reference in New Issue
Block a user