Fix for issue #496 and #497

This commit is contained in:
Kasper Rynning-Tønnesen
2019-03-22 18:01:56 +01:00
parent e2b2801728
commit 4fab433f61
2 changed files with 27 additions and 8 deletions

View File

@@ -384,7 +384,7 @@ function namechange(data, guid, socket, tried, callback) {
function removename(guid, coll, socket) {
//coll = coll.replace(/ /g,'');
checkIfChatEnabled(coll, socket, function(enabled) {
if(enabled) return;
if(!enabled) return;
db.collection("user_names").find({"guid": guid}, function(err, docs) {
if(docs.length == 1) {
var old_name = docs[0].name;