I want to logg everyone who joins my channel in a file.
on *:JOIN:#chan:{
if ( $readini users.ini Users [ $nick ] == $null ) {
/write chan.txt $nick
/writeini users.ini Users [ $nick ] listed
}
}

that one i got. but when a new one joins. i want to msg chan.sentral that a new user is in the chan. and how many that has been in the chan.. does anny one know how to do that..
And one other thing.
i have a bot that loggs individual ppl in the chan in nick.txt so is there any way to just type !log nick then it will say how many lines that person has written in the chan ?