now it can reload its configuration at runtime :)

This commit is contained in:
Robert "ar" Gerus 2013-06-09 19:03:52 +02:00
parent 693d44191f
commit 4973d83165
2 changed files with 10 additions and 0 deletions

View file

@ -3,3 +3,9 @@ Client.register_command("reload") { |args|
"plugins reloaded..."
}
Client.register_command("load") { |args|
Client.load_config
"config reloaded..."
}

View file

@ -25,4 +25,8 @@ class Repost < EventMachine::IRC::Client
end if not Config[:plugins].nil?
end
def load_config(file = "config.rb")
load File.dirname($0) + "/" + file
end
end