summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ASM/Event.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ASM/Event.pm b/lib/ASM/Event.pm
index 7456166..a7bbddf 100644
--- a/lib/ASM/Event.pm
+++ b/lib/ASM/Event.pm
@@ -83,7 +83,7 @@ sub on_pong
if ($::settingschanged) {
$::settingschanged = 0;
} else {
- $conn->privmsg($::settings->{masterchan}, "Config files changed, auto rehash triggered. Check console for possible errors.");
+ $conn->notice($::settings->{masterchan}, "Config files changed, auto rehash triggered. Check console for possible errors.");
ASM::Config->readConfig();
}
}
@@ -94,14 +94,14 @@ sub on_pong
return; #we don't worry about lag if we've just started up and are still syncing, or just experienced a netsplit
}
if (($lag > 2) && ($lag < 5)) {
- $conn->privmsg( $::settings->{masterchan}, "Warning: I'm currently lagging by $lag seconds.");
+ $conn->notice( $::settings->{masterchan}, "Warning: I'm currently lagging by $lag seconds.");
}
if ($lag >= 5) {
$lagcycles++;
if ($lagcycles >= 3) {
$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 " .
+ $conn->notice( $::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." );
}
}
@@ -279,9 +279,9 @@ sub on_quit
($nick ne 'eir') # another freenode pseudoservice
) {
if ($::netsplit == 0){
- $conn->privmsg($::settings->{masterchan}, "Entering netsplit mode - JOIN and QUIT inspection will be disabled for 60 minutes");
+ $conn->notice($::settings->{masterchan}, "Entering netsplit mode - JOIN and QUIT inspection will be disabled for 60 minutes");
$::netsplit = 1;
- $conn->schedule(60*60, sub { $::netsplit = 0; $conn->privmsg($::settings->{masterchan}, 'Returning to regular operation'); });
+ $conn->schedule(60*60, sub { $::netsplit = 0; $conn->notice($::settings->{masterchan}, 'Returning to regular operation'); });
}
if ($::netsplit_ignore_lag == 0){
$::netsplit_ignore_lag = 1;