summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2007-11-08 07:21:22 +0000
committerYaohan Chen <yaohan.chen@gmail.com>2007-11-08 07:21:22 +0000
commit5e9c0102fd405848497e84dce6c84bb151287425 (patch)
tree4dc724c796c50564d56bb99e9d62863e7a1c2d05 /data
parent97ad67c0d4e33d29e3f7ef27d7e3a1249b41e066 (diff)
alias.rb: revert previous commit about creating path since mkdir_p only creates
directory if it does not exist
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/alias.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/alias.rb b/data/rbot/plugins/alias.rb
index 0a6e5869..289ef1ad 100644
--- a/data/rbot/plugins/alias.rb
+++ b/data/rbot/plugins/alias.rb
@@ -64,7 +64,7 @@ class AliasPlugin < Plugin
end
def save
- FileUtils.mkdir_p(@data_path) unless FileTest.directory?(@data_path)
+ FileUtils.mkdir_p(@data_path)
Utils.safe_save(@data_file) {|f| f.write @aliases.to_yaml}
end