try this..

on *:quit:{
if (*.*.*.* iswm $1) && (*.*.*.* iswm $2) {
if (%netspilt == $null) {
amsg Netsplit, between Server $code $+ $gettok($1,1,42) and $+ $code $gettok($2,1,42) $+ .
inc -u10 %netspilt
halt
}
}
}