only update room text if its topic

will fix this in a better way
This commit is contained in:
barisusakli
2014-09-04 23:26:55 -04:00
parent e28d778c0c
commit 190647a074
2 changed files with 8 additions and 8 deletions

View File

@@ -188,7 +188,9 @@ Sockets.init = function(server) {
emitOnlineUserCount();
for(var roomName in io.sockets.manager.roomClients[socket.id]) {
updateRoomBrowsingText(roomName.slice(1));
if (roomName.indexOf('topic') !== -1) {
updateRoomBrowsingText(roomName.slice(1));
}
}
});