mIRC Home    About    Download    Register    News    Help

Print Thread
#13288 26/02/03 07:55 PM
Joined: Dec 2002
Posts: 60
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
Code:
;Netsplit Detector
on *:QUIT: {
  if (*.*.* iswm $1) && $&
    (*.*.* iswm $2) && $&
    ($3 == $null) && $&
    (%cs.netsplit $+ $1 $+ $2 == $null) {
    set %cs.netsplit $+ $1 $+ $2
    csmessage $servernote NetSplit Detected Between Servers: $1 & $2
  }
}


anyone see anything wrong with that? it doesnt get past the if statment even it there is no %cs.netsplit*

Last edited by Cyber_Axe; 26/02/03 07:56 PM.
#13289 26/02/03 07:59 PM
Joined: Feb 2003
Posts: 9
A
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
A
Joined: Feb 2003
Posts: 9
use:
%cs.netsplit [ $+ [ $1 ] $+ [ $2 ] ]
for the variable names...

------

or:
$+(%,cs.netsplit,$1,$2) ... with /set

and
$eval($+(%,cs.netsplit,$1,$2),2) to check the values (in IF)

---
EDIT: missed a K in check..

Last edited by ARGH; 26/02/03 08:01 PM.
#13290 26/02/03 08:16 PM
Joined: Dec 2002
Posts: 60
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
thanx, now all i need is more netsplits!


Link Copied to Clipboard