message: Remove old _onModeratedChannel function
diff: @@ -825,6 +825,14 @@ IrcHandler.prototype.onPart = Promise.coroutine(function*(req, server, leavingUs
  yield promise;
  });
  +/**
  + * Called when a user sets a mode in a channel.
  + * @param {Request} req The metadata request
  + * @param {IrcServer} server : The sending IRC server.
  + * @param {string} channel The channel that has the given mode.
  + * @param {string} mode The mode that the channel is in, e.g. +sabcdef
  + * @return {Promise} which is resolved/rejected when the request finishes.
  + */
  IrcHandler.prototype.onMode = Promise.coroutine(function*(req, server, channel, by,
  mode, enabled, arg) {
  this.incrementMetric("mode");
  @@ -836,31 +844,6 @@ IrcHandler.prototype.onMode = Promise.coroutine(function*(req, server, channel,
  yield this.powerlevelSyncer.onMode(req, server, channel, by, mode, enabled, arg);
  });
  -IrcHandler.prototype._onModeratedChannelToggle = Promise.coroutine(function*(req, server, channel,
  - by, enabled, arg) {
  - let matrixRooms = yield this.ircBridge.getStore().getMatrixRoomsForChannel(server, channel);
  - // modify power levels for all mapped rooms to set events_default to something >0 so by default
  - // people CANNOT speak into it (unless they are a mod or have voice, both of which need to be
  - // configured correctly in the config file).
  - const botClient = this.ircBridge.getAppServiceBridge().getIntent().getClient();
  - for (let i = 0; i < matrixRooms.length; i++) {
  - const roomId = matrixRooms[i].getId();
  - try {
  - const plContent = yield botClient.getStateEvent(roomId, "m.room.power_levels", "");
  - plContent.events_default = enabled ? 1 : 0;
  - yield botClient.sendStateEvent(roomId, "m.room.power_levels", plContent, "");
  - req.log.info(
  - "onModeratedChannelToggle: (channel=%s,enabled=%s) power levels updated in room %s",
  - channel, enabled, roomId
  - );
  - this.ircBridge.getStore().setModeForRoom(roomId, "m", enabled);
  - }
  - catch (err) {
  - req.log.error("Failed to alter power level in room %s : %s", roomId, err);
  - }
  - }
  -});
  -
  /**
  * Called when channel mode information is received
  * @param {Request} req The metadata request
  