mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Oops, forgot to update these for the reviter=>reversed change.
This commit is contained in:
parent
81aff97e71
commit
b5ac09b4e1
@ -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()
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user