chiark / gitweb /
google have broken ~define
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Mon, 25 Jul 2011 11:58:34 +0000 (12:58 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Mon, 25 Jul 2011 11:58:34 +0000 (12:58 +0100)
commands.py
servus.html

index f323b00fb91e108abcc3c16bab76a8a64aa4f179..d22655e7fab72147322a6a03afba55e1fd1a1d4a 100644 (file)
@@ -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))
index 03982a1f452873f2534e18c49342e21fb5a662a8..89606a2aef5ccee59c5df2ec1a59cc084a8bad35 100644 (file)
@@ -67,10 +67,8 @@ class="code">~command</span>. Alternatively, you may pass commands by
 <hr />
 
 <h3><a name="define">define</a></h3>
-<p>This command returns (either on-channel or by <span
-class="code">/msg</span>) 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...</p>
+<p>This command no longer works, as google have broken 'define'-style
+      searches; it will return an error message if invoked.</p> 
 
 <h3><a name="die">die</a></h3>
 <p>This command must be invoked by <span class="code">/msg</span> only,