plug some holes

configuration-in-hiera
Robert Gerus 2015-04-16 10:07:44 +02:00
parent 50ce39da5c
commit 1bc794e9f9
2 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Repost < EventMachine::IRC::Client
self.triggers << {:command => command, :code => code, :name => name}
end
def load_plugins(scope)
def load_plugins(scope = { "network" => @network })
self.triggers = []
Config.lookup("plugins::list", [], scope).each do |plugin|
puts "Loading plugin #{plugin}"

2
run.rb
View File

@ -67,4 +67,6 @@ end
# to do anything.
Client.load_plugins
Client.network = "freenode"
Client.run!