mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed spacing from listnames serverside
This commit is contained in:
@@ -155,6 +155,8 @@ io.on('connection', function(socket){
|
||||
{
|
||||
in_list = true;
|
||||
coll = list.toLowerCase();
|
||||
coll = decodeURIComponent(coll);
|
||||
coll = coll.replace(/\s+/g, '');
|
||||
socket.join(coll);
|
||||
socket.join(short_id);
|
||||
socket.emit("id", short_id);
|
||||
@@ -552,6 +554,8 @@ function left_channel(coll, guid, name, short_id)
|
||||
function del(params, socket)
|
||||
{
|
||||
var coll = params[0].toLowerCase();
|
||||
coll = decodeURIComponent(coll);
|
||||
coll = coll.replace(/\s+/g, '');
|
||||
db.collection(coll).find({views:{$exists:true}}, function(err, docs){
|
||||
if(docs !== null && docs.length != 0 && docs[0]["adminpass"] == hash_pass(params[3]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user