Thanks the code worked. I didn't really want help with that exact code, but I used your advice to finish my welcome bot:

Quote:
on *:text:!name*:#:{
if ((%floodname) || ($($+(%,floodname.,$nick),2))) { return }
set %floodname. $+ $nick On
set %name. [ $+ [ $nick ] ] $2
msg $chan $nick set their nickname to $2
}
on !*:join:#redhunterp:{
if ((%floodwelcome) || ($($+(%,floodwelcome.,$nick),2))) { return }
set -u21600 %floodwelcome. $+ $nick On
if ($2 == $null) {
if (%name. [ $+ [ $nick ] ] == $null) {
var %welcome = $rand(1,6)
if (%welcome == 1) msg $chan $nick $+ , Welcome to the stream! Be welcome!
if (%welcome == 2) msg $chan Welcome to the stream $nick $+ ! Be welcome!
if (%welcome == 3) msg $chan $nick Welcome! Be welcome!
if (%welcome == 4) msg $chan Welcome $nick $+ ! Be welcome!
if (%welcome == 5) msg $chan Good to see you $nick $+ , Welcome to the stream!
if (%welcome == 6) msg $chan $nick $+ , good to see you! Welcome to the stream!
}
else {
var %welcome = $rand(1,6)
if (%welcome == 1) msg $chan %name. [ $+ [ $nick ] ] $+ , Welcome to the stream! Be welcome!
if (%welcome == 2) msg $chan Welcome to the stream %name. [ $+ [ $nick ] ] $+ ! Be welcome!
if (%welcome == 3) msg $chan %name. [ $+ [ $nick ] ] Welcome! Be welcome!
if (%welcome == 4) msg $chan Welcome %name. [ $+ [ $nick ] ] $+ ! Be welcome!
if (%welcome == 5) msg $chan Good to see you %name. [ $+ [ $nick ] ] $+ , Welcome to the stream!
if (%welcome == 6) msg $chan %name. [ $+ [ $nick ] ] $+ , good to see you! Welcome to the stream!
}
}
}


Thanks for the help grin