message: Add static variables in BridgedClient
diff: @@ -491,7 +491,7 @@ BridgedClient.prototype._getValidNick = function(nick, throwOnInvalid) {
  // strip illegal chars according to RFC 2812 Sect 2.3.1
  - let n = nick.replace(/[^A-Za-z0-9\]\[\^\\\{\}\-`_\|]/g, "");
  + let n = nick.replace(BridgedClient.illegalCharactersRegex, "");
  if (throwOnInvalid && n !== nick) {
  throw new Error(`Nick '${nick}' contains illegal characters.`);
  }
  @@ -738,4 +738,6 @@ BridgedClient.prototype._joinChannel = function(channel, key, attemptCount) {
  return defer.promise;
  }
  +BridgedClient.illegalCharactersRegex = /[^A-Za-z0-9\]\[\^\\\{\}\-`_\|]/g;
  +
  module.exports = BridgedClient;
  