I have got a script that welcomes people every time they come into my stream but I want it to read joins.txt file to see if there name is already there. If their name is on that list I want it to say a welcome back $nick message instead. I have tried but it isn't working.
on !*:join:#hiyapeopleofthe:{
if(!$read(joins.txt,nw,$nick)){
msg $chan Welcome $nick to my stream. Please follow if you haven't already
write joins.txt $nick
}
else msg $chan Welcome back $nick to hiyapeopleofthe's stream!
}