The following is a bit of code from a dialog that I'm making.
This section of code works fine, if the network that I've got selected in ID 3 matches the network that the dialog was started on.
If I select a different network, the channels (ID 6) get generated no problem, but the nicks for the selected channel aren't being generated (almost as if there was no one in the room, but that can't be since I have to be in the room for the channel name to be generated)
Any ideas/hints/solutions?
on *:dialog:Channel_Control:init:*:{
.scon -at1 did -va $dname 3 $!network
}
on *:dialog:Channel_Control:sclick:3:{
did -vr $dname 6
did -hr $dname 9
var %a = 1,%b = $chan(0)
.scon $did(3).sel
while %a <= %b {
did -va $dname 6 $chan(%a)
inc %a
}
}
on *:dialog:Channel_Control:sclick:6:{
did -vr $dname 9
var %a = 1,%b = $nick($did(6).seltext,0)
.scon $did(3).sel
while %a <= %b {
did -a $dname 9 $nick($did(6).seltext,%a)
inc %a
}
}