I want you to know this 5618 because this little bit of knowledge opened up my scripting a lot when I learned it.

You can send data to an alias.

Code:
on *:join:#:{
/test_alias $nick $chan
}

alias test_alias {
;$1 == $nick
;$2 == $chan
  if (m isincs $chan($2).mode) && ($2 !isvoice $1) { mode $2 +v $1 }
}



Also, an alias called in an event carries over things like $chan I guess. I never use this as I don't understand it's limits and I like to make sure my code is 100% accurate always. (It would just take some time to test, Im lazy)

Anyways, this is good to know. smile


As for the request ...

Code:
on me:*:join:#:{ .timerjoinm 1 5 /join_m $chan }
alias join_m {
  if ($me !ison $1) { return }
  elseif (m isincs $chan($1).mode) && ($me !isvoice $1) { part $1 }
}