Extra dashes, begone\!

This commit is contained in:
Jeremy Fincher 2004-10-19 12:05:30 +00:00
parent 75bd81aed7
commit 5fc347f3f0

View File

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