summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--repost.rb2
-rwxr-xr-xrun.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/repost.rb b/repost.rb
index 4d50000..5624110 100644
--- a/repost.rb
+++ b/repost.rb
@@ -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}"
diff --git a/run.rb b/run.rb
index eb5e4d6..55eb175 100755
--- a/run.rb
+++ b/run.rb
@@ -67,4 +67,6 @@ end
# to do anything.
Client.load_plugins
+Client.network = "freenode"
+
Client.run!