mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Extra dashes, begone\!
This commit is contained in:
parent
75bd81aed7
commit
5fc347f3f0
@ -456,8 +456,8 @@ class Misc(callbacks.Privmsg):
|
|||||||
was sent to; --on requires a network the message was sent on; --with
|
was sent to; --on requires a network the message was sent on; --with
|
||||||
requires some string that had to be in the message; --regexp requires
|
requires some string that had to be in the message; --regexp requires
|
||||||
a regular expression the message must i match; --nolimit returns all
|
a regular expression the message must i match; --nolimit returns all
|
||||||
the messages that can be found. By default, the current channel is
|
the messages that can be found. By default, the channel this command is
|
||||||
searched.
|
given in is searched.
|
||||||
"""
|
"""
|
||||||
predicates = {}
|
predicates = {}
|
||||||
nolimit = False
|
nolimit = False
|
||||||
@ -492,7 +492,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
return arg.search(m.args[1])
|
return arg.search(m.args[1])
|
||||||
predicates.setdefault('regexp', []).append(f)
|
predicates.setdefault('regexp', []).append(f)
|
||||||
elif option == '--nolimit':
|
elif option == 'nolimit':
|
||||||
nolimit = True
|
nolimit = True
|
||||||
iterable = ifilter(self._validLastMsg, reversed(irc.state.history))
|
iterable = ifilter(self._validLastMsg, reversed(irc.state.history))
|
||||||
iterable.next() # Drop the first message.
|
iterable.next() # Drop the first message.
|
||||||
|
Loading…
Reference in New Issue
Block a user