while loops - 03/07/03 01:03 PM
on *:part:#:{
var %i 1
if ($nick == $me) {
while (%i <= $did(switch,4).lines) {
did -ck switch 4 %i
$iif($did(switch,4).seltext == $chan,did -d switch 4 %i,inc %i)
}
}
elseif ($nick != $me) {
while (%g <= $did(switch,7).lines) {
did -ck switch 7 %g
$iif($did(switch,7).seltext == $nick,did -d switch 7 %g,inc %g)
}
}
}
the first part works, removing the channel from list when i part..., but removing the nickname doesnt work
var %i 1
if ($nick == $me) {
while (%i <= $did(switch,4).lines) {
did -ck switch 4 %i
$iif($did(switch,4).seltext == $chan,did -d switch 4 %i,inc %i)
}
}
elseif ($nick != $me) {
while (%g <= $did(switch,7).lines) {
did -ck switch 7 %g
$iif($did(switch,7).seltext == $nick,did -d switch 7 %g,inc %g)
}
}
}
the first part works, removing the channel from list when i part..., but removing the nickname doesnt work