def replace(self, irc, msg, args, user, channel, id, text):
        """[<channel>] <id> <text>
        Replace quote <id> with <text>. <channel> is only necessary if
        the message isn't sent in the channel itself.
        """
        try:
            record = self.db.get(channel, id)
            self.checkChangeAllowed(irc, msg, channel, user, record)
            record.text = text
            self.db.set(channel, id, record)
            irc.replySuccess()
        except __HOLE__:
            self.noSuchRecord(irc, channel, id)
dataset/ETHPy150Open ProgVal/Limnoria/plugins/Quote/plugin.py/Quote.replace