]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/salut.rb
Try to read old language-agnostic lart/praises if language-specific ones are not...
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / salut.rb
index 1a301b438e13619011b75ba1e387bd733f525407..4827601948324570af93c22f154523f497444a9e 100644 (file)
@@ -137,6 +137,10 @@ class SalutPlugin < Plugin
   end\r
 \r
   def load_lang(lang)\r
+    dir = "#{@bot.botclass}/salut"\r
+    if not File.exist?(dir)\r
+      Dir.mkdir(dir)\r
+    end\r
     file = "#{@bot.botclass}/salut/salut-#{lang}"\r
     if File.exist?(file)\r
       begin\r