limit rename room by same name

This commit is contained in:
deardrops 2017-05-29 10:09:37 +08:00
parent 37782768f7
commit 39d743b77c
2 changed files with 2 additions and 2 deletions

View file

@ -245,7 +245,7 @@ RoomManager.prototype.renameRoom = function (client,cfg) {
return;
}
room.name = newRoomName;
room.name = newRoomName; // update client.room.name
renameProperty(this.roomMap, oldRoomName, newRoomName);
room.update();
this.updateRoomList();

@ -1 +1 @@
Subproject commit 36727dd62e19545ca9a0abcc25124e7858c788aa
Subproject commit 05f50588feefab6b79887bab0fd473a1063e22b4