chiark / gitweb /
don't double-notice urls when ~url used in-channel
authorMatthew Vernon <matthew@rapun.sel.cam.ac.uk>
Thu, 17 Jun 2010 14:32:56 +0000 (15:32 +0100)
committerMatthew Vernon <matthew@rapun.sel.cam.ac.uk>
Thu, 17 Jun 2010 14:32:56 +0000 (15:32 +0100)
Servus-chiark.py

index 0e0137cc785d36fdcf4f5bc33506bdf403445ca3..02c44d3aa59abdca0ef33899bcda965b620b8915 100644 (file)
@@ -201,7 +201,7 @@ def command(bot, cmd, nick, conn, public):
            lastexp=t
 
     if public:
-      if c.urlre.search(cmd):
+      if c.urlre.search(cmd) and command.lower()!="url":
         c.dourl(bot,conn,nick,cmd,urldb)
          
     # karma: up