This fix does not work with dnn 4.05.05. I changed "Return theuser.UserID.ToString()" to "Return theuser.DisplayName.ToString()" and got the Error "Input string was not in a correct. format.".
It would seem that the DispName property has a problem?
Reguardless, I have users that want to use a different Display Name than their UserID and expect to keep their user name out of the chat window. Please let me know if there are additional changes required.