All pastes #768963 Raw Edit

Netsplit Detector

public text v1 · immutable
·published 2007-11-11 00:35 UTC
rendered paste body
on *:quit:{ 
  if (*.*.*.* iswm $1) && (*.*.*.* iswm $2) { 
    if (%netspilt == $null) { 
      amsg 4[Netsplit] $+ $chr(160) $+ Netsplit detected between 8 $+ $code $+ $gettok($1,1,42) and  $+ $code $gettok($2,1,42) $+ . 
      inc -u10 %netspilt 
      halt 
    } 
  } 
}