diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-07 18:30:22 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-07 18:30:22 +0000 |
commit | e9ab9d3dd4d96002e06eadccdaceba04d7ba3ecd (patch) | |
tree | 22343ae37328fe1dbab0fe65664580531f09e17e /data | |
parent | 36a9b6341daab4e8e63c2ad04418ecba4d877e27 (diff) |
alias plugin: don't create data path if it already exists
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/alias.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/alias.rb b/data/rbot/plugins/alias.rb index 289ef1ad..0a6e5869 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) + FileUtils.mkdir_p(@data_path) unless FileTest.directory?(@data_path) Utils.safe_save(@data_file) {|f| f.write @aliases.to_yaml} end |