i am trying to use $read to read scan a text file to see if a $nick is already in the txt. but i think i am screwing it up. the way it is supposed to work is when a person joins any of the three channels i have set, it scans a text file for the nick, and if NOT found, it does a ctcp version on them and captures the version information along with thier nick, but i cant get the scanning to work. Here is my code so far:
on *:join:#speaker's_corner,#mp3wavlovers,#keeker:{
if ( $nick !isin $read(userversion.txt,s,$nick)) { ctcp $nick version }
}
on *:CTCPREPLY:version*:{
echo -a $1-
if ( $1 !isin $read(c:\mirc2\userversion.txt,w,* $+ $nick $+ *) ) { write c:\mirc2\userversion.txt $nick $3- }
}
can someone please give me a shove in the right direction?
edit - Fixed ending code tag