diff options
author | David Phillips <david@sighup.nz> | 2018-09-17 18:01:47 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-20 22:32:25 +1200 |
commit | 62555509a4ced02f05f44e658abf86d7f665d63f (patch) | |
tree | 7cc28067cb111c7703488c947ace1f75e782bba5 | |
parent | 0168a87290dccb8548b4943aca6a43b1a2567a96 (diff) | |
download | idalius-62555509a4ced02f05f44e658abf86d7f665d63f.tar.xz |
Allow default quit message
Fixes regression introduced in bf8314a0283f7565854fe773c5d1edf8e26c9660
-rw-r--r-- | Plugin/Admin.pm | 2 | ||||
-rw-r--r-- | 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' => 'π ' } |