From d828118b73e8a068e7358fd9acb626047e70692d Mon Sep 17 00:00:00 2001 From: ocha Date: Sun, 30 May 2021 01:29:42 +0900 Subject: [PATCH] =?UTF-8?q?IRC=E3=83=9C=E3=83=83=E3=83=88=EF=BC=9A?= =?UTF-8?q?=E3=82=B7=E3=82=B0=E3=83=8A=E3=83=AB=E3=83=8F=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=83=A9=E3=81=A7=E5=8F=82=E7=85=A7=E3=81=99=E3=82=8B=E5=A4=89?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #277 `sig` -> `signal` --- lib/ircs/irc_bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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