]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/post-config.rb
plugin(factoids): use registry for storage see #42
[user/henk/code/ruby/rbot.git] / lib / rbot / post-config.rb
index 182cdfce7cc4c001dd42e249c938b6bece582748..1dc29103e2f6a333948a77c740951f2cdb36c985 100644 (file)
@@ -1,8 +1,9 @@
 # write out our datadir so we can reference it at runtime
-File.open('rbotconfig.rb', "w") {|f|
+File.open("pkgconfig.rb", "w") {|f|
   f.puts "module Irc"
-  f.puts "  module Config"
+  f.puts "  module PKGConfig"
   f.puts "    DATADIR = '#{config('datadir')}/rbot'"
+  f.puts "    COREDIR = '#{config('rbdir')}/rbot/core'"
   f.puts "  end"
   f.puts "end"
 }