diff --git a/lib/ircs/irc_bot.rb b/lib/ircs/irc_bot.rb index ed08c385..2806ec87 100644 --- a/lib/ircs/irc_bot.rb +++ b/lib/ircs/irc_bot.rb @@ -212,7 +212,7 @@ def set_signal_handler(bot, status_server_signal_io_w) # シグナルを捕捉し、ボットを終了させる処理 %i(SIGINT SIGTERM).each do |signal| Signal.trap(signal) do - bot.quit(@quit_message.empty? ? "Caught #{sig}" : @quit_message) + bot.quit(@quit_message.empty? ? "Caught #{signal}" : @quit_message) status_server_signal_io_w.write('q') end end