Small fix for variable not defined crashing server

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-06 13:23:52 +02:00
parent 1394d6420d
commit 9164541750

View File

@@ -650,6 +650,9 @@ function delete_all(msg, coll, guid, offline, socket) {
socket.emit('update_required', result);
return;
}
if(coll == undefined) {
coll = msg.channel;
}
coll = coll.replace(/ /g,'');
Functions.getSessionAdminUser(Functions.getSession(socket), coll, function(userpass, adminpass, gotten) {
if(adminpass != "" || msg.adminpass == undefined) {