From: Giuseppe Bilotta Date: Mon, 17 Nov 2008 00:07:22 +0000 (+0100) Subject: azgame plugin: borked wordlist loading with previous patch X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=aefc3887362b36cce5dc9906ad09c28ae6f8cb40;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git azgame plugin: borked wordlist loading with previous patch --- diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb index 1df3c7b4..05b767f0 100644 --- a/data/rbot/plugins/games/azgame.rb +++ b/data/rbot/plugins/games/azgame.rb @@ -132,7 +132,7 @@ class AzGamePlugin < Plugin end def initialize_wordlist(lang) - wordlist = @wordlist_base + lang + wordlist = @wordlist_base + lang.to_s if File.exist?(wordlist) words = File.readlines(wordlist).map {|line| line.strip}.uniq if(words.length >= 4) # something to guess