So, basically what you're requesting is that once you join the room and get flooded with (x has joined #) you don't want to welcome them?
on *:join:#: {
if (%joinspam == on) return
msg # Welcome to the stream $nick $+ !
}
on me:*:join:#: {
set -u60 %joinspam on
}
EDIT: I noticed the other stuff you wanted too.
Here's how I would do it, ignore the part above.
on *:text:!welcome*:#: {
if ($2 == on) {
.timerjoin 0 5 Joined
set %channel #
}
if ($2 == off) {
.timerjoin off
unset %channel
}
}
on *:join:#: {
if (%channel != #) return
set %joined $addtok(%joined,$nick,32)
}
alias Joined {
if (%joined == $null) return
msg %channel Welcome to the stream, %joined :)
unset %joined
}