Code: Select all
set ip [lindex [fconfigure $sock -peername] 0]
putdcc 12 "'$ip' '$::euroipchaos' '$::euroiploki'"
if { [fconfigure $sock -error] == "" } {
switch $ip {
$::euroipchaos {
set ::eurostatuschaos 1
putdcc 12 "status chaos"
}
$::euroiploki {
set ::eurostatusloki 1
putdcc 12 "status loki"
}
default {putdcc 12 "noob"}
}
}here the partyline log caused by the debug code:
according to http://www.tcl.tk/man/tcl8.4/TclCmd/switch.htm this statement looks perfectly fine for me. I also tried to use ${::euroipchaos} which won't change anything. I also tried to use the variable via global and without :: within the switch structure, but still no change... it still calls default'62.109.138.138' '62.109.138.134' '62.109.138.138'
noob
'62.109.138.134' '62.109.138.134' '62.109.138.138'
noob