summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-12-22 16:34:23 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-12-22 16:34:23 +0000
commit1686b5316059bf3f859dd01c48c4bacae6524f5b (patch)
tree08c91f3c406b1d29451b1fed436987a62169ddcf /data/rbot
parent8aabf15ea34903a42eda615d9d04c9c76b72bae0 (diff)
Fix a horrendous String leak
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/salut.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/salut.rb b/data/rbot/plugins/salut.rb
index b8d9c4d7..1ad6540a 100644
--- a/data/rbot/plugins/salut.rb
+++ b/data/rbot/plugins/salut.rb
@@ -175,8 +175,8 @@ class SalutPlugin < Plugin
end
def save_lang(lang, val)
- file = "#{@bot.botclass}/salut/salut-#{lang}"
- Utils.safe_save(file) { |file|
+ fn = "#{@bot.botclass}/salut/salut-#{lang}"
+ Utils.safe_save(fn) { |file|
file.puts val.to_yaml
}
end