summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <rgerus@dpd.com.pl>2015-04-16 10:07:44 +0200
committerRobert Gerus <rgerus@dpd.com.pl>2015-04-16 10:07:44 +0200
commit1bc794e9f92f30e6aef15baa6131a9724d777b53 (patch)
tree475358573ff80ad302397e177fbb7f5adf7cc7f6
parent50ce39da5c86e164fa65886e84fbce63b8ca41c3 (diff)
downloadrepost-1bc794e9f92f30e6aef15baa6131a9724d777b53.tar.gz
repost-1bc794e9f92f30e6aef15baa6131a9724d777b53.tar.bz2
repost-1bc794e9f92f30e6aef15baa6131a9724d777b53.tar.xz
repost-1bc794e9f92f30e6aef15baa6131a9724d777b53.zip
plug some holes
-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!