From 1686b5316059bf3f859dd01c48c4bacae6524f5b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 22 Dec 2006 16:34:23 +0000 Subject: Fix a horrendous String leak --- data/rbot/plugins/salut.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot') 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 -- cgit v1.2.3