]> jfr.im git - erebus.git/blobdiff - modules/urls.py
urls - blacklist my gitweb, lol
[erebus.git] / modules / urls.py
index fabd7abb1cef876590d26ff74eab4258ba7ac7dd..859f9acb642dd521d0025c311b9f53f3bdca734c 100644 (file)
@@ -126,6 +126,9 @@ def privmsg_hook(bot, textline):
                line = ''
 
        responses = process_line(line)
+       send_response(bot, chan, responses)
+
+def send_response(bot, chan, responses):
        if len(responses) > 0:
                if lib.parent.cfg.getboolean('urls', 'multiline'):
                        for r in responses:
@@ -319,6 +322,7 @@ url_regex = (
 other_regexes = (
        (lambda x: '', (re.compile(r"""https?://(?:www\.)?(?:twitter|x)\.com/""", re.I),)), # skip twitter
        (lambda x: '', (re.compile(r"""https?://(?:www\.)?reddit\.com/""", re.I),)), # skip new-reddit
+       (lambda x: '', (re.compile(r"""https?://jfr\.im/git/""", re.I),)), # skip my gitweb
 )
 regexes = other_regexes + (
        (goturl, url_regex),