Hi..I'm attempting to do a little Christmas script that posts lyrics of 39 different Christmas songs to the channel from a file depending on what lyric number is selected. What I want it to do is set the channel to +m (moderated) and +v (voice) the nick, post the lyrics and then set the channel back to -m and devoice the nick. This is what I have so far but I keep getting an error in my status window of "0 No such channel". It basically does what I want it to do, but sometimes it repeats itself and posts the lyric again. That error continues every 2 seconds in my status window and the command cannot be typed again until the errors stop. The lyric selected below is lyrics26, the lyrics range from lyrics1 - lyrics39
on *:Text:!lyrics26:#: {
set %chan_ $chan
set %nick_ $nick
/mode $chan +m
/mode $chan +v $nick
/play $chan C:\mIRC\xmaslyrics\lyrics26.txt
}
on *:PLAYEND: {
/mode %chan_ -m
/mode %chan_ -v %nick_
set %chan_ 0
set %nick_ 0
}
Nevermind...it actually does work without errors. It turns out I had a similar script running with copy/paste errors that clashed with these ones. Works fine now.