Hello , anyone know whats wrong in this netsplit detect script?
I tried create a new for my bot , but none of them work
1,)
on *:quit: {
if (*.net *.split isin $1-) && ($left($1,5) != quit:) && (killed !isin $1-) && (!$hget(networks,$cid)) {
echo -a Netsplit warning ( $+ $network $+ ) > Detected possible netsplit on $network at connection ID $cid
if ($cid == $activecid) {
if ($server isin $1-) { echo -a Possible netsplit detected on current server ( $+ $server $+ ), $+ /changeserver $+ to change server }
else { echo -a Possible netsplit detect on $network ( $+ $1- $+ ) }
}
hadd -mu5 networks $cid $1-
}
}
2,)
on *:QUIT:{ if ((*.net iswm $1) && (*.net iswm $2)) { amsg Netsplit detected between $1 <> $2 } }
As Jethro_ said you should have posted this in the forum, and not as a snippet.
either here
mIRC Scripting
or here
mIRC Snippet Requests