I got it working in one channel. How do I get it to work in multiple channels? I changed the welcome text for different channels, I renamed the timers, and added the channel name for each code. I can't seem to get it working in more than one channel at a time. Do I have to add something to "Joined" to differentiate between the two?
Here is what I have so far:
on *:text:!welcomesquirrel*:#: {
if ($2 == on) {
.timerjoinsq 0 10 Joined
set %channel #
}
if ($2 == off) {
.timerjoinsq off
unset %channel
}
}
on *:join:#th3squirrel4: {
if (%channel != #) return
set %joined $addtok(%joined,$nick,32)
}
alias Joined {
if (%joined == $null) return
msg %channel Welcome to the stream, %joined :)
unset %joined
}
and
on *:text:!welcomegeico*:#: {
if ($2 == on) {
.timerjoinge 0 10 Joined
set %channel #
}
if ($2 == off) {
.timerjoinge off
unset %channel
}
}
on *:join:#geico_cavemanx: {
if (%channel != #) return
set %joined $addtok(%joined,$nick,32)
}
alias Joined {
if (%joined == $null) return
msg %channel Welcome to the stream, %joined :)
unset %joined
}
on