ah, i see, it echos insuficient parameters if theres nothing after the word :tongue:
i tried: $read(sockbot.txt,s,sockread) - it returned %s - the line was: sockread %s
then i tried: $read(sockbot.txt,s,;ctcp) - it returned insufficient params - the line was: ;ctcp
this would work though:
on *:KICK:#:{
if (!$read(kicklist.txt,w,$+(*,$knick,*)) {
write kicklist.txt $knick
}
}
on *:JOIN:#:{
if ($read(kicklist.txt,w,$+(*,$nick,*)) {
echo $chan $nick had previous offenses
}
}