From 62555509a4ced02f05f44e658abf86d7f665d63f Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 17 Sep 2018 18:01:47 +1200 Subject: Allow default quit message Fixes regression introduced in bf8314a0283f7565854fe773c5d1edf8e26c9660 --- Plugin/Admin.pm | 2 ++ bot.conf.example | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Plugin/Admin.pm b/Plugin/Admin.pm index 622f772..9313110 100644 --- a/Plugin/Admin.pm +++ b/Plugin/Admin.pm @@ -142,6 +142,8 @@ sub reconnect { return unless is_admin($logger, $who, $ided); my $reason = $rest; + $reason = $config->{quit_msg} unless $reason; + $irc->yield(quit => $reason); } diff --git a/bot.conf.example b/bot.conf.example index c7eddcf..34cbf45 100644 --- a/bot.conf.example +++ b/bot.conf.example @@ -10,8 +10,6 @@ sslkey = foo.key channels = [ #saxtalk, #bot] ignore = [trumpetbot, abusiveuser] password = pleffquiffle -must_id = 1 -quit_msg = Goodbye! user = nobody group = nobody prefix_nick = 1 @@ -19,6 +17,8 @@ prefix = % [Plugin::Admin] admins = [ snargle!~kleg@glarg.example.com ] +must_id = 1 +quit_msg = Goodbye! [Plugin::Titillate] triggers = { 'sa+x' => '🎷 ', 'trumpet' => '🎺 ', 'snake' => '🐍 ' } -- cgit v1.1