diff --git a/bot.py b/bot.py index 3440316..37604f3 100644 --- a/bot.py +++ b/bot.py @@ -24,7 +24,7 @@ QUOTE_ADDED_PATTERN = re.compile(r'''^ (?P.+)\s+-->\s+ Sweet!\s+Thanks\s+for\s+the\s+quote!\s+ \#(?P\d+):\s+ - "(?P.+)"\s+ + (?P.+)\s+ \[(?P.+)\]\s+ \[(?P.+)\]$''', re.VERBOSE) @@ -162,6 +162,8 @@ class TwitchBot(irc.bot.SingleServerIRCBot): connection.privmsg(self.channel, msg) def add_quote(self, connection, tags, user, id, text, game, date, **kwargs): + if text[0] == text[-1] == '"': + text = text[1:-1] log.info('Adding quote %s: %s', id, text) try: self.post(dict(