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:
9227d5b
)
output suppressed urls to #urls
author
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Wed, 13 Apr 2011 13:54:12 +0000
(14:54 +0100)
committer
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Wed, 13 Apr 2011 13:54:12 +0000
(14:54 +0100)
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index 6049640b62fddce7749fa01f1d5b5b3c83b3099b..08faf54c7b0c386bee1699cef811dffef264f5c4 100644
(file)
--- a/
commands.py
+++ b/
commands.py
@@
-346,6
+346,11
@@
def urlq(bot, cmd, nick, conn, public,urldb):
T.count+=1
bot.automsg(False,nick,complaint)
T.lastasked=time.time()
+ #URL suppressed, so mention in #urls
+ if urlstring != cmd.split()[1]: #first argument to URL was not the url
+ conn.privmsg("#urls","%s remarks: %s" % (nick," ".join(cmd.split()[1:])))
+ else:
+ conn.privmsg("#urls","(via %s) %s"%(nick," ".join(cmd.split()[1:])))
else:
if (public):
bot.automsg(False,nick,"That URL was unique. There is little point in using !url out loud; please use it via /msg")