From b717101641296f19fde9f2ca15966b9bbe8c7210 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Tue, 14 Feb 2017 01:02:40 +0000 Subject: Make lag quit message configurable The original message is freenode/atheme-specific; additionally, the freeze-to-fix suggestion is rather odd and probably specific to the original freenode instance. --- lib/ASM/Event.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/ASM/Event.pm') diff --git a/lib/ASM/Event.pm b/lib/ASM/Event.pm index 6fda437..7456166 100644 --- a/lib/ASM/Event.pm +++ b/lib/ASM/Event.pm @@ -99,9 +99,7 @@ sub on_pong if ($lag >= 5) { $lagcycles++; if ($lagcycles >= 3) { - $conn->quit("Automatic restart triggered due to persistent lag. Freenode staff: If this is happening too frequently, please " . - "set a nickserv freeze on my account, and once my connection is stable, unfreeze the account and /kill me to tri" . - "gger a reconnect."); + $conn->quit( $::settings->{quitmsg_lag} // 'Automatic restart triggered due to persistent lag.' ); } else { $conn->privmsg( $::settings->{masterchan}, "Warning: I'm currently lagging by $lag seconds. This marks heavy lag cycle " . "$lagcycles - automatic restart will be triggered after 3 lag cycles." ); -- cgit v1.2.3