summaryrefslogtreecommitdiffstats
path: root/lib/ASM
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2017-02-14 01:02:40 +0000
committerLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2017-02-14 01:02:40 +0000
commitb717101641296f19fde9f2ca15966b9bbe8c7210 (patch)
tree58c6e555f49dc8b28a0a32277c5710a457c5df74 /lib/ASM
parentecb16565531b349acda366515ebb2f9fc1cc24a3 (diff)
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.
Diffstat (limited to 'lib/ASM')
-rw-r--r--lib/ASM/Event.pm4
1 files changed, 1 insertions, 3 deletions
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." );