summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/games
diff options
context:
space:
mode:
authorDavid Gadling <dave@toasterwaffles.com>2009-05-21 11:53:19 -0700
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-05-21 22:09:28 +0200
commit7f244f32d974cafa74f449853f940f194d08d6d2 (patch)
treeb72684ce149254edaf2dba993c409a640cc43086 /data/rbot/plugins/games
parentd8fd18fe30013ba7705aaeb5dd4521cbe013b824 (diff)
multiple plugins: Changes to remove parenthesize warnings.
All of these modules/plugins were generating warnings like this: warning: parenthesize argument(s) for future version This patch should fix all the warnings without affecting functionality.
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r--data/rbot/plugins/games/shiritori.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/games/shiritori.rb b/data/rbot/plugins/games/shiritori.rb
index 92f4dda4..3cb3c7b5 100644
--- a/data/rbot/plugins/games/shiritori.rb
+++ b/data/rbot/plugins/games/shiritori.rb
@@ -390,7 +390,7 @@ class ShiritoriPlugin < Plugin
if ruleset.has_key?(:wordlist_file)
begin
ruleset[:words] =
- File.new(datafile ruleset[:wordlist_file]).grep(
+ File.new(datafile(ruleset[:wordlist_file])).grep(
ruleset[:listen]) {|l| ruleset[:normalize].call l.chomp}
rescue
raise "unable to load word list"