update snarfuri to exclude command-line lines
* Exclude lines from being matched by snarfuri that begin with . * Enable posted time display by the posted modulemaster
parent
b20e921932
commit
5d50d54671
|
@ -88,12 +88,12 @@ noteuri.priority = 'low'
|
||||||
|
|
||||||
|
|
||||||
def snarfuri(phenny, input):
|
def snarfuri(phenny, input):
|
||||||
uri = input.group(1)
|
uri = input.group(2)
|
||||||
title = gettitle(phenny, input, uri)
|
title = gettitle(phenny, input, uri)
|
||||||
|
|
||||||
if title:
|
if title:
|
||||||
phenny.msg(input.sender, title)
|
phenny.msg(input.sender, title)
|
||||||
snarfuri.rule = r'.*(http[s]?://[^<> "\x01]+)[,.]?'
|
snarfuri.rule = r'([^\.].*)?(http[s]?://[^<> "\x01]+)[,.]?'
|
||||||
snarfuri.priority = 'low'
|
snarfuri.priority = 'low'
|
||||||
snarfuri.thread = True
|
snarfuri.thread = True
|
||||||
|
|
||||||
|
|
|
@ -61,9 +61,7 @@ def posted(phenny, input):
|
||||||
|
|
||||||
posted = check_posted(phenny, input, url)
|
posted = check_posted(phenny, input, url)
|
||||||
if posted:
|
if posted:
|
||||||
# when the day comes when you can inhibit snarfuri if modules are called
|
phenny.reply("URL was posted {0}".format(posted))
|
||||||
# phenny.reply("URL was posted {0}".format(posted))
|
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
phenny.reply("I don't remember seeing this URL in this channel.")
|
phenny.reply("I don't remember seeing this URL in this channel.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue