mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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:
|
if nick == msg.nick:
|
||||||
irc.error('You can\'t quote grab yourself.')
|
irc.error('You can\'t quote grab yourself.')
|
||||||
return
|
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):
|
if m.command == 'PRIVMSG' and ircutils.nickEqual(m.nick, nick):
|
||||||
self._grab(irc, m, msg.prefix)
|
self._grab(irc, m, msg.prefix)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
@ -151,7 +151,7 @@ class URL(callbacks.PrivmsgCommandAndRegexp,
|
|||||||
continue
|
continue
|
||||||
(protocol, site, filename, _, _, _) = urlparse.urlparse(url)
|
(protocol, site, filename, _, _, _) = urlparse.urlparse(url)
|
||||||
previousMsg = ''
|
previousMsg = ''
|
||||||
for oldMsg in reviter(irc.state.history):
|
for oldMsg in reversed(irc.state.history):
|
||||||
if oldMsg.command == 'PRIVMSG':
|
if oldMsg.command == 'PRIVMSG':
|
||||||
if oldMsg.nick == msg.nick and oldMsg.args[0] == channel:
|
if oldMsg.nick == msg.nick and oldMsg.args[0] == channel:
|
||||||
previousMsg = oldMsg.args[1]
|
previousMsg = oldMsg.args[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user