This will allow you to specify one or more channels to part/join. or, if no channel is specified, then nothing will happen in the join, or will part all channels...Didn't include a way to allow for others, yet...but will think about it, and post when I have something.


Code:
on *:text:!part *:?:{
if ($nick == $me) { 
if (!$2) {
var %a = $comchan($me,0)
while (%a) { .part $comchan($me,%a) }
dec %a
}
else {
var %a = $2-
while (%a) {
if <bot> isin $gettok(%a,1,32) { .part $v2 }
}
var %a = $remtok(%a,$v2,1,32)
}
}
}

on *:text:!join *:?:{
if ($nick == $me) { 
if ($2) {
var %a = $2-
while (%a) {
if <bot> !isin $gettok(%a,1,32) { .join $v2 }
}
var %a = $remtok(%a,$v2,1,32)
}
}
}
 

Last edited by RusselB; 22/03/05 09:01 PM.