From 959bc65b4852e313fbc51d0f8d097b670324b1d2 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 4 Dec 2007 13:11:03 +0000 Subject: azgame plugin: whitespace cleanup --- data/rbot/plugins/games/azgame.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/rbot/plugins/games') diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb index fb81b6d7..495173b3 100644 --- a/data/rbot/plugins/games/azgame.rb +++ b/data/rbot/plugins/games/azgame.rb @@ -121,7 +121,7 @@ class AzGamePlugin < Plugin :listener => /^[a-z]+$/ }, } - + japanese_wordlist = "#{@bot.botclass}/azgame/wordlist-japanese" if File.exist?(japanese_wordlist) words = File.readlines(japanese_wordlist) \ @@ -339,12 +339,12 @@ class AzGamePlugin < Plugin def is_japanese?(word) @rules[:japanese][:list].include?(word) end - + # return integer between min and max, inclusive def rand_between(min, max) rand(max - min + 1) + min end - + def random_pick_japanese(min=nil, max=nil) rules = @rules[:japanese] min = rules[:first] if min.nil_or_empty? -- cgit v1.2.3