summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-14 13:16:37 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-14 13:16:37 +0000
commitec5dfc8ea426c6dc7fa004dd6a7e97ffb4fe8b8c (patch)
treee032c118d2ff80041f51b58dc84377d2ff0c787e
parent9481bd5f3f5499146f1040e58dfef823e2989eeb (diff)
Rename google plugin back to search in preparation for wikipedia support
-rw-r--r--data/rbot/plugins/search.rb (renamed from data/rbot/plugins/google.rb)4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/google.rb b/data/rbot/plugins/search.rb
index 8c573c39..8118b263 100644
--- a/data/rbot/plugins/google.rb
+++ b/data/rbot/plugins/search.rb
@@ -4,7 +4,7 @@ Net::HTTP.version_1_2
GOOGLE_WAP_LINK = /<a accesskey="(\d)" href=".*?u=(.*?)">(.*?)<\/a>/im
-class GooglePlugin < Plugin
+class SearchPlugin < Plugin
def help(plugin, topic="")
"google <string> => search google for <string>"
end
@@ -35,7 +35,7 @@ class GooglePlugin < Plugin
end
end
-plugin = GooglePlugin.new
+plugin = SearchPlugin.new
plugin.map "search *words", :action => 'google'
plugin.map "google *words", :action => 'google'