aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-06-19 18:33:09 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-06-19 18:33:09 +0000
commit2c755b9825305ca191fbfcdea4c0e3b74866b86a (patch)
tree93441f8929f3fa518fe5e3258ff62eb8e618ab85
parentAvoid mismatch on server messages. (diff)
downloadrbot-gentoo-2c755b9825305ca191fbfcdea4c0e3b74866b86a.tar.gz
rbot-gentoo-2c755b9825305ca191fbfcdea4c0e3b74866b86a.tar.bz2
rbot-gentoo-2c755b9825305ca191fbfcdea4c0e3b74866b86a.zip
Dupe the change from the master plugins.
-rw-r--r--gentoo-search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoo-search.rb b/gentoo-search.rb
index f711e59..9644c19 100644
--- a/gentoo-search.rb
+++ b/gentoo-search.rb
@@ -1,7 +1,7 @@
#-- vim:sw=2:et:ft=ruby
GOOGLE_SEARCH = "http://www.google.com/search?oe=UTF-8&q="
-GOOGLE_WAP_SEARCH = "http://www.google.com/wml/search?hl=en&q="
+GOOGLE_WAP_SEARCH = "http://www.google.com/m/search?hl=en&q="
GOOGLE_WAP_LINK = /<a accesskey="(\d)" href=".*?u=(.*?)">(.*?)<\/a>/im
GOOGLE_CALC_RESULT = %r{<img src=/images/calc_img\.gif(?: width=40 height=30 alt="")?></td><td>&nbsp;</td><td nowrap>(?:<h2 class=r>)?<font size=\+1><b>(.+)</b>(?:</h2>)?</td>}
GOOGLE_DEF_RESULT = %r{<p> (Web definitions for .*?)<br/>(.*?)<br/>(.*?)\s-\s+<a href}