'Add an individual channel to the handler. This is called
whenever a new channel is created.
Args:
channel (Channel): The channel to add.
Notes:
To remove a channel, simply delete the channel object and
run self.update on the handler. This should usually be
handled automatically by one of the deletion methos of
the Channel itself.'

def add(self, channel):

    global _CHANNEL_COMMAND_CLASS
    if (not _CHANNEL_COMMAND_CLASS):
        _CHANNEL_COMMAND_CLASS = class_from_module(settings.CHANNEL_COMMAND_CLASS)
    cmd = _CHANNEL_COMMAND_CLASS(key=channel.key.strip().lower(), aliases=channel.aliases.all(), locks=('cmd:all();%s' % channel.locks), help_category='Channel    names', obj=channel, is_channel=True)
    key = channel.key
    cmd.__doc__ = cmd.__doc__.format(channelkey=key, lower_channelkey=key.strip().lower(), channeldesc=channel.attributes.get('desc', default='').strip())
    self.cached_channel_cmds[channel] = cmd
    self.cached_cmdsets = {}
