update snarfuri to exclude command-line lines
* Exclude lines from being matched by snarfuri that begin with . * Enable posted time display by the posted module
This commit is contained in:
@@ -88,12 +88,12 @@ noteuri.priority = 'low'
|
||||
|
||||
|
||||
def snarfuri(phenny, input):
|
||||
uri = input.group(1)
|
||||
uri = input.group(2)
|
||||
title = gettitle(phenny, input, uri)
|
||||
|
||||
if title:
|
||||
phenny.msg(input.sender, title)
|
||||
snarfuri.rule = r'.*(http[s]?://[^<> "\x01]+)[,.]?'
|
||||
snarfuri.rule = r'([^\.].*)?(http[s]?://[^<> "\x01]+)[,.]?'
|
||||
snarfuri.priority = 'low'
|
||||
snarfuri.thread = True
|
||||
|
||||
@@ -195,4 +195,4 @@ def gettitle(phenny, input, uri):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(__doc__.strip())
|
||||
print(__doc__.strip())
|
||||
|
||||
Reference in New Issue
Block a user