As processText is run on the client side, the wgUserName will be replaced with the name of the user who receives the message. So each user will see his own name in this line - I guess that's not how /me was supposed to work. I'll think about other way of implementing this and get back to you.