chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83f359f
)
url observations: make the "complaints" less complainy
author
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Wed, 7 Nov 2018 19:17:56 +0000
(19:17 +0000)
committer
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Wed, 7 Nov 2018 19:17:56 +0000
(19:17 +0000)
Based on Ian Jackson's re-wording, but tweaked a little to suit my
taste better.
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index 5a7cc94cdac1165910175f136cb1959afb9bd09b..cdc776caa06f11e2788fb0e758a878ab696efa03 100755
(executable)
--- 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):