summaryrefslogtreecommitdiff
path: root/lib/nickserver/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver/config.rb')
-rw-r--r--lib/nickserver/config.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/nickserver/config.rb b/lib/nickserver/config.rb
index 3f92186..b283d8b 100644
--- a/lib/nickserver/config.rb
+++ b/lib/nickserver/config.rb
@@ -15,7 +15,12 @@ module Nickserver
attr_accessor :couch_user
attr_accessor :couch_password
attr_accessor :port
+ attr_accessor :pid_file
+ attr_accessor :user
+ attr_accessor :log_file
+
attr_accessor :loaded
+ attr_accessor :verbose
end
def self.load
@@ -39,9 +44,9 @@ module Nickserver
exit(1)
end
end
- puts "Loaded #{file_path}"
+ puts "Loaded #{file_path}" if Config.verbose
rescue Errno::ENOENT => exc
- puts "Skipping #{file_path}"
+ puts "Skipping #{file_path}" if Config.verbose
rescue Exception => exc
STDERR.puts exc.inspect
exit(1)