 
     mute_channels.splice idx, 1
 
+  robot.brain.set 'mute_channels', mute_channels
   cb 'Channel ' + channel + ' ' + action + 'd'
   return true
 

muteAll = (action, cb) ->
  mute_all = action == 'mute'

  cb 'All channels have been ' + action + 'd'

muteChannel = (action, channel, cb) ->

mute_explain = {}

module.exports = (robot) ->
  mute_channels = robot.get('mute_channels') or []
  mute_all = robot.get('mute_all') or false

  robot.respond /mute list$/i, (msg) ->
    msg.finish()
    if mute_channels.length is 0 and mute_all is false
