diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/games/azgame.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb index edff9093..dd0dfe0d 100644 --- a/data/rbot/plugins/games/azgame.rb +++ b/data/rbot/plugins/games/azgame.rb @@ -135,7 +135,7 @@ class AzGamePlugin < Plugin wordlist = @wordlist_base + lang.to_s if File.exist?(wordlist) # wordlists are assumed to be UTF-8, but we need to strip the BOM, if present - words = File.readlines(wordlist).map {|line| line.sub("\xef\xbb\xbf",'').strip}.uniq + words = File.readlines(wordlist).map {|line| line.sub("\xef\xbb\xbf",'').strip}.uniq.sort if(words.length >= 4) # something to guess rules = { :good => /^\S+$/, |