Netsplit

By Lenooox on Apr 13, 2011

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

Comments

Sign in to comment.
Lenooox   -  Apr 13, 2011

okey im so sorry :( i send a forum post !

 Respond  
napa182   -  Apr 13, 2011

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

 Respond  
Jethro   -  Apr 13, 2011

You can only have one quit event. Having two identical events will result in the first one on top to respond to trigger. The second one will be ignored by mIRC. Why didn't you submit this question at the forum?

 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.