mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with channels having spaces
This commit is contained in:
@@ -59,6 +59,7 @@ function get_short_id(socket) {
|
||||
|
||||
function check_inlist(coll, guid, socket, offline)
|
||||
{
|
||||
coll = coll.replace(/ /g,'');
|
||||
if(!offline && coll != undefined){
|
||||
db.collection("connected_users").update({"_id": coll}, {$addToSet:{users: guid}}, {upsert: true}, function(err, updated) {
|
||||
if(updated.nModified > 0 || updated.upserted != undefined) {
|
||||
|
||||
Reference in New Issue
Block a user