hi on join event is # not $
in write file i think the $nick must be $!nick
and if the user is voiced ? what about him?
so the code can be like this
on *:text:!aw*:#:{ if ($nick(#,$nick,vr)) msg # sorry only mod status can add welcomes else { write welcome.txt ... ...... } }