Are you sure you don't have that netsplit_detected variable used in some script? Tried unloading everything and leaving only this script to see if it's working or not?
Let's try with adding some debugging tools by replacing:
proc netsplit:unlock args {
global netsplit_detected
putlog "netsplit_detected was set to: $netsplit_detected"
set netsplit_detected 0
putlog "netsplit_detected is now set to: $netsplit_detected"
}
tried the debug on my own testnet reproducing a netsplit with a bunch of local bots to join after and in all cases it still triggered the anti mass join and booted them even tho i reproduced a netsplit
set netsplit_detected 0
bind raw - QUIT netsplit:detect
proc netsplit:detect {from key arg} {
global netsplit_detected
if {[info exists netsplit_detected]} return
set arg [string trimleft [stripcodes bcruag $arg] :]
if {[string equal "Quit:" [string range $arg 0 4]]} return
if {![regexp -- {^([[:alnum:][:punct:]]+)[[:space:]]([[:alnum:][:punct:]]+)$} $arg _arg s1 s2]} return
if {[string match "*.dal.net" $s1] && [string match "*.dal.net" $s2]} {
set netsplit_detected 1
putlog "netsplit_detected was set to: $netsplit_detected"
utimer 180 [list netsplit:unlock]
}
}
proc netsplit:unlock args {
global netsplit_detected
set netsplit_detected 0
putlog "netsplit_detected was set to: $netsplit_detected"
}
and "trigger" an net-split then wait and see if after 3 minutes is set back to 0.
Make sure you do a .restart as .rehash isn't very reliable apparently.
Edit: Fixed variable.
Last edited by caesar on Fri Mar 08, 2019 2:25 am, edited 1 time in total.
Once the game is over, the king and the pawn go back in the same box.
i initiated a netsplit on my testnet again and the results are still the same meaning even after a netsplit it detects rejoined users from netsplit as join flood and boots them out
also gettin error:
Tcl error [netsplit:detect]: can't read "text": no such variable