Skip to content

Commit

Permalink
ServerConnectionReport::Test: テストメールであることをメールの件名・本文に明記する
Browse files Browse the repository at this point in the history
ref #144
  • Loading branch information
koi-chan committed Jul 23, 2019
1 parent 2c87821 commit bcb122b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rgrb/plugin/server_connection_report/test/irc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def initialize(*)

config_data = config[:plugin]
@test_channel = config_data['TestChannel'] || '#irc_test'

@mail_generator.subject = "[TEST] #{@mail_generator.subject}"
@mail_generator.body = "This is TEST mail.\nby #{self.class.to_s}\n\n--\n#{@mail_generator.body}"
end

# ネットワークにあるサーバが参加したときの処理
Expand Down

0 comments on commit bcb122b

Please sign in to comment.