I have my on join message set up like so
on *:join:#channel:{
if ($nick == $me) { halt }
if ($nick isop #channel) { halt }
else {
msg $nick MOTD goes here }
}
I want to make it so i can have the users $nick added to a text file after he is messaged once so that he doesn't get harrassed. i have seen code like this
on *:JOIN:#: {
if ($nick isin $read(nicks.txt,w,$+(*,$nick))) { halt }
else /write nicks.txt $nick
/msg # your text
}
But when i implemented this code it did not work, would i have to manually create the text file or is it done automatically. Is this the correct way to accoplish this?