Permalink
Browse files

Add more config options (fixes #11).

  • Loading branch information...
1 parent f0d991e commit 101a91503115c26af447cb06e6d540d64c1df0b4 @whitequark committed Feb 16, 2014
Showing with 10 additions and 3 deletions.
  1. +10 −3 logger.rb
View
@@ -22,12 +22,19 @@
bot = Cinch::Bot.new do
configure do |c|
+ # Server config
c.server = Config['server']
- c.port = Config['port'] if Config['port']
- c.channels = Config['channels']
+ c.port = Config['port'] unless Config['port'].nil?
+ c.ssl.use = Config['ssl'] unless Config['ssl'].nil?
+
+ # Auth config
c.user = Config['username']
- c.nick = Config['nickname']
+ c.password = Config['password'] unless Config['password'].nil?
c.realname = Config['realname']
+ c.nick = Config['nickname']
+
+ # Logging config
+ c.channels = Config['channels']
# cinch, oh god why?!
c.plugins.plugins = [IrcLogger::CinchPlugin]

0 comments on commit 101a915

Please sign in to comment.