[A] - Netsplit Detector. (V1.0B#2004)

By Advanced on Oct 05, 2004

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
    }
  } 
}

Comments

Sign in to comment.
Fuzion   -  Aug 07, 2008

nice and useful

 Respond  
SpaceCat   -  Mar 02, 2006

inc -u10 %netspilt <- there? ;0

 Respond  
DarthReven   -  Nov 16, 2004

One question where is the %netsplit variable set

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.