chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a8197e
)
use google.co.uk for definitions
author
Matthew Vernon
<matthew@rapun.sel.cam.ac.uk>
Fri, 7 Aug 2009 14:19:41 +0000
(15:19 +0100)
committer
Matthew Vernon
<matthew@rapun.sel.cam.ac.uk>
Fri, 7 Aug 2009 14:19:41 +0000
(15:19 +0100)
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index fa80e00e74851c7880260ca50f17b70bc14987b5..7e4a94c130ddee2eb090ca3ccb7ab8bd2332709d 100644
(file)
--- 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.co
m
/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