From d13c4f4e8d1d6a9b126540ba60dd541048b23772 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 5 Apr 2007 09:28:57 +0000 Subject: imdb plugin: make aka searches optional --- data/rbot/plugins/imdb.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb index ad9bbf58..96501659 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -25,7 +25,8 @@ class Imdb end def search(rawstr) - str = URI.escape(rawstr) << ";site=aka" + str = URI.escape(rawstr) + str << ";site=aka" if @bot.config['imdb.aka'] return do_search(str) end @@ -245,6 +246,9 @@ class Imdb end class ImdbPlugin < Plugin + BotConfig.register BotConfigBooleanValue.new('imdb.aka', + :default => true, + :desc => "Look for IMDB matches also in translated titles and other 'also known as' information") BotConfig.register BotConfigBooleanValue.new('imdb.popular', :default => true, :desc => "Display info on popular IMDB entries matching the request closely") -- cgit v1.2.3