I think you want to use get_nick(user) here instead of user.