The first time that one user returns on a chan, the egg writes the number of people who are returns on this chan ==> it'ok. I will want that the second time that it returns the egg writes the number of people who came since her last visit.
bind to JOIN, keeping track of joining users, i.e. increment a counter
also, save that counter, associated with joining user's nick; thus you'll be able to show the difference between current and saved counters (i.e. the number of users joined since then)
#If the variable countinside($nick) does NOT exist, we create it.
if ![info exists countinside($nick)] {
set countinside($nick) [expr $total]
putserv "privmsg $channel : $countinside($nick)"
return 0
}
# This will pm the channel with something
putserv "privmsg $channel : [expr $total - $countinside($nick)] news"
# THEN you write it again, and that's why you write it anyway.
set countinside($nick) [expr $total]