This is a simple netsplit detector that identifies a netsplit when a user quits and sends an amsg to all channels that you are in. If you wanted you could add a counter to it so it shows the total number of netsplits and so on. * For further help join #Advanced on IRC.AustNet.Org (paagrio.at.eu.austnet.org or sg.austnet.org)
on *:quit:{
if (*.*.*.* iswm $1) && (*.*.*.* iswm $2) {
if (%netspilt == $null) {
amsg 2[A] $+ $chr(160) $+ Netsplit detected between $code $+ $gettok($1,1,42) and $+ $code $gettok($2,1,42) $+ .
inc -u10 %netspilt
halt
}
}
}