summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-10 10:06:05 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-10 10:06:05 +0000
commit63b0b9682c3d3636e47c48750a42f768b8e7574b (patch)
tree2b0900d54d6fc3e7354a59780fd07e3b74075f53
parentaeff57ecf846b714e08d0095f1aea28a74e47d0b (diff)
Preserve safe save dir across rescans
-rw-r--r--lib/rbot/core/utils/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index 4613dada..c2b7d7b1 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -345,7 +345,7 @@ module ::Irc
end
- @@safe_save_dir = nil
+ @@safe_save_dir = nil unless defined?(@@safe_save_dir)
def Utils.set_safe_save_dir(str)
@@safe_save_dir = str.dup
end