chiark / gitweb /
correct syntax in define command
authorMatthew Vernon <matthew@rapun.sel.cam.ac.uk>
Fri, 7 Aug 2009 13:39:54 +0000 (14:39 +0100)
committerMatthew Vernon <matthew@rapun.sel.cam.ac.uk>
Fri, 7 Aug 2009 13:39:54 +0000 (14:39 +0100)
Servus-chiark.py
commands.py

index a0ba8a5189a0d2060f4b6d635293f91c6309e8c5..8e308bab74bfb76bcc067604480b76272e274f9e 100644 (file)
@@ -161,7 +161,7 @@ commands = {"karma": (c.karmaq,karmadb),
             "google": c.googleq,
            "units": c.unitq,
            "help": c.helpq,
             "google": c.googleq,
            "units": c.unitq,
            "help": c.helpq,
-#          "define": c.defineq,
+           "define": c.defineq,
 #          "game": (c.gameq,game),
             "say": c.sayq,
             "do": c.doq }
 #          "game": (c.gameq,game),
             "say": c.sayq,
             "do": c.doq }
index eac4bc3ce0ee50ccdef0ab088675c27742764b26..637ec5fddffbbb14f4d1d9c0b5c2b302f2c48753 100644 (file)
@@ -251,7 +251,7 @@ def defineq(bot, cmd, nick, conn, public):
         else:
            # We assume google has truncated the definition for us so this
            # won't flood the channel with text...
         else:
            # We assume google has truncated the definition for us so this
            # won't flood the channel with text...
-           defn = " ".join(match.group(1).split("\n"));
+           defn = " ".join(match.group(1).split("\n"))
            bot.automsg(public,nick,defn)
     except IOError: # if the connection times out. This blocks. :(
          bot.automsg(public,nick,"The web's broken. Waah!")
            bot.automsg(public,nick,defn)
     except IOError: # if the connection times out. This blocks. :(
          bot.automsg(public,nick,"The web's broken. Waah!")