Oops, forgot to update these for the reviter=>reversed change.

This commit is contained in:
Jeremy Fincher 2004-04-22 02:55:46 +00:00
parent 81aff97e71
commit b5ac09b4e1
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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]