@internationalizeDocstring
    def default(self, irc, msg, args, channel, optlist, text):
        if optlist and text:
            raise callbacks.ArgumentError
        for (option, foo) in optlist:
            if option == 'remove':
                self.setRegistryValue('default', '', channel)
                irc.replySuccess()
                return
        if text:
            self.setRegistryValue('default', text, channel)
            irc.replySuccess()
        else:
            resp = self.registryValue('default', channel) or \
                   _('I do not have a default herald set for %s.') % channel
            irc.reply(resp)
[<channel>] [--remove|<msg>]
dataset/ETHPy150Open ProgVal/Limnoria/plugins/Herald/plugin.py/Herald.default