From e623d2e4b671274f9c8468519a7bf01ef68050bf Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 30 Aug 2003 02:40:03 +0000 Subject: [PATCH] Added docstring and guard for lasturls. --- plugins/URLSnarfer.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/URLSnarfer.py b/plugins/URLSnarfer.py index 59b445b43..db47019ed 100644 --- a/plugins/URLSnarfer.py +++ b/plugins/URLSnarfer.py @@ -193,7 +193,13 @@ class URLSnarfer(callbacks.Privmsg, ChannelDBHandler): (count, int(count) == 1 and 'URL' or 'URLs')) def lasturls(self, irc, msg, args): - args.append('--nolimit') + """[] [--{from,with,at,proto,near}=] + + Uses arguments in the same way as lasturl; acts as if lasturl was given + the --nolimit option. + """ + if '--nolimit' not in args: + args.append('--nolimit') self.lasturl(irc, msg, args) def lasturl(self, irc, msg, args):