Download:
child 36:9a474aabfe41
parent 34:0497bddba297
35:ec831f0ca300 draft
Anton Shestakov <av6@dwimlabs.net>, Thu, 22 Nov 2018 17:47:30 +0800
plugin: only catch ".*/D1234" patterns in URL snarfer

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
plugin.py file | annotate | diff | comparison | revisions
--- a/plugin.py Thu Nov 22 17:47:07 2018 +0800
+++ b/plugin.py Thu Nov 22 17:47:30 2018 +0800
@@ -188,7 +188,7 @@
differential = wrap(differential, ['phabrev'])
def snarfDifferential(self, irc, msg, match):
- r'\bD(?P<phabrev>\d+)\b'
+ r'(^|[^/])\bD(?P<phabrev>\d+)\b'
channel = msg.args[0]
if not irc.isChannel(channel):
return