mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user