From 56f09a02484a55ec3b2da563cf85de582d343df4 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Wed, 13 Apr 2011 14:54:12 +0100 Subject: [PATCH] output suppressed urls to #urls --- commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands.py b/commands.py index 6049640..08faf54 100644 --- 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") -- 2.30.2