Made --at option for lasturl be more natural with domains.

This commit is contained in:
Jeremy Fincher 2003-08-26 18:14:13 +00:00
parent 19a9804dee
commit 8f33ff28bd

View File

@ -184,6 +184,8 @@ class URLSnarfer(callbacks.Privmsg, ChannelDBHandler):
criteria.append('url LIKE %s')
formats.append(argument)
elif option == 'at':
if '%' not in argument and '_' not in argument:
argument = '%' + argument
criteria.append('site LIKE %s')
formats.append(argument)
elif option == 'proto':