mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Made --at option for lasturl be more natural with domains.
This commit is contained in:
parent
19a9804dee
commit
8f33ff28bd
@ -184,6 +184,8 @@ class URLSnarfer(callbacks.Privmsg, ChannelDBHandler):
|
|||||||
criteria.append('url LIKE %s')
|
criteria.append('url LIKE %s')
|
||||||
formats.append(argument)
|
formats.append(argument)
|
||||||
elif option == 'at':
|
elif option == 'at':
|
||||||
|
if '%' not in argument and '_' not in argument:
|
||||||
|
argument = '%' + argument
|
||||||
criteria.append('site LIKE %s')
|
criteria.append('site LIKE %s')
|
||||||
formats.append(argument)
|
formats.append(argument)
|
||||||
elif option == 'proto':
|
elif option == 'proto':
|
||||||
|
Loading…
Reference in New Issue
Block a user