summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/imdb.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb
index 6ee371a9..652d7442 100644
--- a/data/rbot/plugins/imdb.rb
+++ b/data/rbot/plugins/imdb.rb
@@ -437,6 +437,15 @@ class ImdbPlugin < Plugin
who = params[:who].to_s
years = params[:years]
role = params[:role]
+ if not role
+ case params[:prefix].intern
+ when :with
+ role = /actor|actress/
+ when :by
+ role = /director/
+ end
+ end
+ role = nil if role.downcase = 'anything'
name_urls = i.search(who, :type => :name)
unless name_urls