summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-04 13:11:03 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-04 13:11:03 +0000
commit959bc65b4852e313fbc51d0f8d097b670324b1d2 (patch)
treeb01d52f519ceac6b012e494c490d858399cc89de
parent82ac675c1e0af29f276457dd7256ad0d800b9021 (diff)
azgame plugin: whitespace cleanup
-rw-r--r--data/rbot/plugins/games/azgame.rb6
1 files changed, 3 insertions, 3 deletions
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?