From cfc06fc35885b86b1d26c47b286cf4e74a35189f Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Wed, 7 Nov 2018 19:17:56 +0000 Subject: [PATCH] url observations: make the "complaints" less complainy Based on Ian Jackson's re-wording, but tweaked a little to suit my taste better. --- commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands.py b/commands.py index 5a7cc94..cdc776c 100755 --- a/commands.py +++ b/commands.py @@ -409,7 +409,10 @@ urlre = re.compile(r"((?:(?:http)|(?:nsfw))s?://[^ ]+)( |$)") hturlre= re.compile(r"(http)(s?://[^ ]+)( |$)") #matches \bre\:?\s+ before a regexp; (?i)==case insensitive match shibboleth = re.compile(r"(?i)\bre\:?\s+((?:(?:http)|(?:nsfw))s?://[^ ]+)( |$)") -urlcomplaints = ["a contemporary","an interesting","a fascinating","an overused","a vastly overused"] +urlcomplaints = ["a new", + "a fascinating", + "an interesting", + "a popular"] ### Deal with /msg bot url or ~url in channel def urlq(bot, cmd, nick, conn, public,urldb): -- 2.30.2