All pastes #475991 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-07 20:46 UTC
rendered paste body
menu channel {
  .channel greet
  ..Reset:/setnew
  ..Show Current Total Joins ( public ): /msg $chan 7Since %totaldate $+ 9 %totalusers 7people have joined $chan
  .-
}
alias /setnew {
  /set %totaldate $date
  /unset %totalusers
}

on *:JOIN:#: {
if ($($+(%,join,$chan),2) == on) {
  inc %totalusers 1
  .notice $nick Welcome to $chan ! I hope you enjoy your stay! 
}
}

on $*:TEXT:/^!greet(on|off)$/Si:#:{
if ($right($1,-6) == off) .unset $+(%,join,$chan)
else .set $+(%,join,$chan) on
}