Skip to content
Browse files

Fixing usage of instance variables for configuration.

  • Loading branch information...
1 parent f5e74a7 commit d19af5fc090c20106bc0e06eda06427fa35980d0 @wilkie wilkie committed Feb 5, 2012
Showing with 5 additions and 8 deletions.
  1. +5 −8 lib/xombot.rb
View
13 lib/xombot.rb
@@ -41,9 +41,6 @@ def add_plugin plugin
@plugins << plugin
end
- def load_plugins
- end
-
def start
config_path = "#{File.dirname(__FILE__)}/../config"
if not File.exists?("#{config_path}/config.yml")
@@ -59,11 +56,11 @@ def start
bot = Cinch::Bot.new do
configure do |c|
- c.server = @server
- c.port = @port
- c.ssl.use = @ssl
- c.nick = @name
- c.channels = @channels
+ c.server = XOmBot.server
+ c.port = XOmBot.port
+ c.ssl.use = XOmBot.ssl
+ c.nick = XOmBot.name
+ c.channels = XOmBot.channels
c.plugins.plugins = XOmBot::Plugins.constants.map do |plugin|
XOmBot::Plugins.const_get(plugin)
end

0 comments on commit d19af5f

Please sign in to comment.
Something went wrong with that request. Please try again.