From 9e280b60903fa9ce16809540ec6c8174adb762cd Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Fri, 7 Aug 2009 14:39:54 +0100 Subject: [PATCH] correct syntax in define command --- Servus-chiark.py | 2 +- commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Servus-chiark.py b/Servus-chiark.py index a0ba8a5..8e308ba 100644 --- a/Servus-chiark.py +++ b/Servus-chiark.py @@ -161,7 +161,7 @@ commands = {"karma": (c.karmaq,karmadb), "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 } diff --git a/commands.py b/commands.py index eac4bc3..637ec5f 100644 --- a/commands.py +++ b/commands.py @@ -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... - 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!") -- 2.30.2