diff --git a/plugins/QuoteGrabs.py b/plugins/QuoteGrabs.py index 3772d6241..2c2a9e9ce 100644 --- a/plugins/QuoteGrabs.py +++ b/plugins/QuoteGrabs.py @@ -165,7 +165,7 @@ class QuoteGrabs(plugins.ChannelDBHandler, callbacks.Privmsg): if nick == msg.nick: irc.error('You can\'t quote grab yourself.') return - for m in reviter(irc.state.history): + for m in reversed(irc.state.history): if m.command == 'PRIVMSG' and ircutils.nickEqual(m.nick, nick): self._grab(irc, m, msg.prefix) irc.replySuccess() diff --git a/plugins/URL.py b/plugins/URL.py index 4137560b1..a1534bd83 100644 --- a/plugins/URL.py +++ b/plugins/URL.py @@ -151,7 +151,7 @@ class URL(callbacks.PrivmsgCommandAndRegexp, continue (protocol, site, filename, _, _, _) = urlparse.urlparse(url) previousMsg = '' - for oldMsg in reviter(irc.state.history): + for oldMsg in reversed(irc.state.history): if oldMsg.command == 'PRIVMSG': if oldMsg.nick == msg.nick and oldMsg.args[0] == channel: previousMsg = oldMsg.args[1]