mIRC Homepage
Posted By: Lenooox netsplit - 06/11/11 07:30 PM
hello im on Quakenet why not work this script for me? whats wrong? frown

Code:
on *:QUIT:{ if ((*.net *.split  iswm $1) && (*.net *.split $2)) { amsg Netsplit detected between $1 <> $2 } } 



Thank you
Posted By: starbucks_mafia Re: netsplit - 06/11/11 07:34 PM
*.net *.split could never be a matching wildmask for $1 because the wildmask contains a space (which by definition $1 never will). Same goes for the $2 check of course.

Also, your $2 check is missing the iswm operator.
Posted By: Masoud Re: netsplit - 07/11/11 08:00 AM
Even if that code work, you'll be excess flooded off the server by it. Imagine 10 nicknames went off by the net split, then you'll send 10 /amsg in less than a second. You have to make sure to send the message only once.

Code:
on !*:Quit:{
  if (. isin $1) && ($eval($+(%,NoFlood,$network),2) == $null) {
    amsg Netsplit detected between $1 <> $2
    set -u60 $+(%,NoFlood,$network) 1
  }
}
Posted By: Lenooox Re: netsplit - 07/11/11 02:52 PM
yes it's true! smile

Thanks for help
Posted By: Lenooox Re: netsplit - 07/03/12 05:11 PM
NetSplit so rarely I do not know to test,it can be so good?
I want to see the server and the who peoples dropped the netsplit. Idea's ?


Code:
on *:QUIT: {
  if ($1- iswm *.net*.split) {
    inc -u3 %netsplit
    set %netsplitn %netsplitn $nick
    if (!$timer(netsplit)) { .timer 1 2 netsplit $1- }
  }
  haltdef
}
alias netsplit {
  echo -a $1 got splitted
  /ame  >>>(*.net *.split) is Detected on Server by  $network : >>> Splitted Nicks: %netsplitn
  unset %netsplitn
}
Posted By: Loki12583 Re: netsplit - 07/03/12 06:48 PM
You don't want to check if the timer exists already, just update it if it does. Remove the check, and give the timer a name. This way you will only call your alias a single time after the last quit.

Your haltdef should be within your if statement, you only want to block the netsplit quits.

If enough users quit, your global nick variable may become too large. You'll want to check the size, and start another variable. Or use a different structure.

You don't need to pass $1- to your alias, it should just read from the global variable(s). Since nothing is passed to the alias, don't echo $1.
© mIRC Discussion Forums