Added a function to get the nickname for a user message.