message: Replace chars in both displayname and localpart
diff: @@ -435,9 +435,12 @@ IrcServer.prototype.getAliasFromChannel = function(channel) {
  IrcServer.prototype.getNick = function(userId, displayName) {
  var localpart = userId.substring(1).split(":")[0];
  - var display = displayName || localpart;
  + localpart = localpart.replace(BridgedClient.illegalCharactersRegex, "");
  + if (displayName) {
  // Carefully replace any characters that will never be displayed.
  - display = BridgedClient.illegalCharactersRegex.replace(display, "");
  + displayName = displayName.replace(BridgedClient.illegalCharactersRegex, "");
  + }
  + var display = displayName || localpart;
  var template = this.config.ircClients.nickTemplate;
  var nick = template.replace(/\$USERID/g, userId);
  nick = nick.replace(/\$LOCALPART/g, localpart);
  