mIRC Home    About    Download    Register    News    Help

Print Thread
help with did -d -r problem! #34375 06/07/03 09:18 AM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
id 9 is a combo , and has a text "all" added to it when $chan(0) is more than 0
on *:PART:#: {
if $dialog(search) {
if ($didwm(search,9,$chan)) {
did -d seeker 9 $ifmatch
if ($chan(0) == 0) { did -r search 9 }
}
}
if the parting channel resulted in $chan(0) = 0, all text should be remove frm id 9-combo. However, the "all" text still remain. As i insert the "all" text in line 1, using did -d search 9 1 cant delete it! What's wrong?

Re: help with did -d -r problem! #34376 06/07/03 12:16 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
when u leave the channel, in this event, $chan(0) will contain the channel u just left so it will be better to do $calc($chan(0) - 1)



Re: help with did -d -r problem! #34377 06/07/03 04:28 PM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Thanks for your help!!!!