message: Declare ClientPool as a class
diff: @@ -10,7 +10,8 @@ const Promise = require("bluebird");
  const QueuePool = require("../util/QueuePool");
  const BridgeRequest = require("../models/BridgeRequest");
  -function ClientPool(ircBridge) {
  +class ClientPool {
  + constructor(ircBridge) {
  this._ircBridge = ircBridge;
  // The list of bot clients on servers (not specific users)
  this._botClients = {
  @@ -26,7 +27,27 @@ function ClientPool(ircBridge) {
  // userIds: {
  // <user_id>: BridgedClient
  // }
  + // These users are in the process of being
  + // connected with an *assumed* nick.
  + // pending: {
  + //
  // }
  + // }
  + }
  +
  + // map of numbers of connected clients on each server
  + // Counting these is quite expensive because we have to
  + // ignore entries where the value is undefined. Instead,
  + // just keep track of how many we have.
  + this._virtualClientCounts = {
  + // server_domain: number
  + };
  +
  + this._reconnectQueues = {
  + // server_domain: QueuePool
  + };
  + }
  +
  }
  // map of numbers of connected clients on each server
  // Counting these is quite expensive because we have to
  