@internationalizeDocstring
    def old(self, irc, msg, args, channel, id):
        if id:
            try:
                record = self.db.getOld(channel, id)
                irc.reply(str(record))
            except dbi.NoRecordError as id:
                irc.errorInvalid(_('news item id'), id)
        else:
            try:
                records = self.db.getOld(channel)
                items = [format('(#%i) %s', R.id, R.subject) for R in records]
                s = format(_('Old news for %s: %s'), channel, '; '.join(items))
                irc.reply(s)
            except dbi.NoRecordError:
                irc.reply(format(_('No old news for %s.'), channel))
[<channel>] [<id>]
dataset/ETHPy150Open ProgVal/Limnoria/plugins/News/plugin.py/News.old