message: Define asBot
diff: @@ -940,7 +940,7 @@ Provisioner.prototype._partUnlinkedIrcClients = Promise.coroutine(
  // appears as joined
  const joinedUserCounts = {}; // user_id => Number
  let unlinkedUserIds = [];
  - let asBot = this._ircBridge.getAppServiceBridge().getBot();
  + const asBot = this._ircBridge.getAppServiceBridge().getBot();
  for (let i = 0; i < matrixRooms.length; i++) {
  let stateEvents = [];
  try {
  @@ -995,15 +995,16 @@ Provisioner.prototype._partUnlinkedIrcClients = Promise.coroutine(
  Provisioner.prototype._leaveMatrixVirtuals = Promise.coroutine(
  function*(req, roomId, server, ircChannel) {
  + const asBot = this._ircBridge.getAppServiceBridge().getBot();
  const roomChannels = yield this._ircBridge.getStore().getIrcChannelsForRoomId(
  roomId
  );
  - if (roomChannels > 0) {
  + if (roomChannels.length > 0) {
  // We can't determine who should and shouldn't be in the room.
  return;
  }
  stateEvents = yield asBot.getClient().roomState(roomId);
  - let roomInfo = asBot._getRoomInfo(matrixRooms[i].getId(), {
  + const roomInfo = asBot._getRoomInfo(matrixRooms[i].getId(), {
  state: {
  events: stateEvents
  }
  