X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=blobdiff_plain;f=commands.py;h=b2df479f8eef6f4ef0c0a2834f94721053942fd8;hp=eac4bc3ce0ee50ccdef0ab088675c27742764b26;hb=ab6aec8d5ef58c5680c04ff520e542c05e6b6c83;hpb=bce7d2086371d534cc8cb19ae0adfc22f85d39d9 diff --git a/commands.py b/commands.py index eac4bc3..b2df479 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