mIRC Home    About    Download    Register    News    Help

Print Thread
#34375 06/07/03 09:18 AM
Joined: Jan 2003
Posts: 127
L
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?

Joined: May 2003
Posts: 730
S
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)



Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Thanks for your help!!!!


Link Copied to Clipboard