Closed eric-ycw closed 10 years ago
In IronbaneServer / Engine / SocketHandler.js, when chatMessahe is emited, rank is not given in user object :
req.io.emit('chatMessage', {
type: 'welcome',
user: {
id: unit.id,
name: unit.name,
// =========== ADD rank: unit.isGuest ? 'guest' : (unit.editor ? 'gm' : 'user') // =========== }, online: socketHandler.onlinePlayers });
Not tested yet
Thanks @Guigo91 . I think I'm going to take a shot a eliminating the need for repeating that rank computation everywhere.
We'll see how it goes :).
The guest name is now listed in orange as of Guigo91's PR
When you have the message "Guest has joined the game!" The guest name is blue, not orange.