X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=blobdiff_plain;f=commands.py;h=159bbb4e888dc67d28bff0e64eeb13d0e389d8af;hp=4bdc45ce01dcc632ae861a4194ced4a9f5c48aed;hb=e6da3880f361a431d5a04a146ea3062cc418cf6f;hpb=9a8c6f919c6e2df251c611630a1d4bdfb4205548 diff --git a/commands.py b/commands.py index 4bdc45c..159bbb4 100644 --- a/commands.py +++ b/commands.py @@ -233,7 +233,7 @@ def googleq(bot, cmd, nick, conn, public): # Look up the definition of something using google def defineq(bot, cmd, nick, conn, public): cmdrest = string.join(cmd.split()[1:]) - targ = ("http://www.google.com/search?q=define%%3A%s&ie=utf-8&oe=utf-8" + targ = ("http://www.google.co.uk/search?q=define%%3A%s&ie=utf-8&oe=utf-8" % urllib.quote_plus(cmdrest)) try: # Just slurp everything into a string @@ -242,16 +242,17 @@ def defineq(bot, cmd, nick, conn, public): # This is of course going to be a bit fragile. We first look for # 'Definitions of %s on the Web' -- if this isn't present we # assume we have the 'no definitions found page'. - # The first defn starts after the following

tag. + # The first defn starts after the following

tag, but as the + # first

  • in a