Skip to content

Commit

Permalink
ServerConnectionReport: IRC アダプタ共通部で設定にロガーを含める
Browse files Browse the repository at this point in the history
fixes #67
  • Loading branch information
ochaochaocha3 committed May 17, 2016
1 parent e2a2395 commit 65b7925
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/rgrb/plugin/server_connection_report/common_disposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ module CommonDisposal

def initialize(*)
super
config_data = config[:plugin]

# プラグインをロガーとして使えるよう、設定に含める
config_data = config[:plugin].merge({ logger: self })

@channels_to_send = config_data['ChannelsToSend'] || []

@generator = Generator.new
@generator.root_path = config[:root_path]
@generator.configure(config[:plugin])
@generator.configure(config_data)
end

# サーバ接続メッセージを NOTICE する
Expand Down

0 comments on commit 65b7925

Please sign in to comment.