get nickname and set into broadcast message

Also, moved this `msg` function under the `setNickname` one to mimic order