From dfbffe47482613fd515dfdc8e1425a9b9b8cbf54 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Mon, 25 Jul 2011 12:58:34 +0100 Subject: [PATCH] google have broken ~define --- commands.py | 3 +++ servus.html | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands.py b/commands.py index f323b00..d22655e 100644 --- a/commands.py +++ b/commands.py @@ -214,6 +214,9 @@ def googleq(bot, cmd, nick, conn, public): # Look up the definition of something using google def defineq(bot, cmd, nick, conn, public): + #this doesn't work any more + bot.automsg(public,nick,"'define' is broken because google are bastards :(") + return cmdrest = string.join(cmd.split()[1:]) targ = ("http://www.google.co.uk/search?q=define%%3A%s&ie=utf-8&oe=utf-8" % urllib.quote_plus(cmdrest)) diff --git a/servus.html b/servus.html index 03982a1..89606a2 100644 --- a/servus.html +++ b/servus.html @@ -67,10 +67,8 @@ class="code">~command. Alternatively, you may pass commands by

define

-

This command returns (either on-channel or by /msg) a definition of the argument(s) of the -"define" command. This is done by using a "define:" query on -google, so the results may be a little unusual at times...

+

This command no longer works, as google have broken 'define'-style + searches; it will return an error message if invoked.

die

This command must be invoked by /msg only, -- 2.30.2