Trev commented on a Page, Simple Away Script (dialog and logs)  -  Jul 07, 2009

Nice script.

Why not use hash tables, instead of windows? Then you can review your hilights at anytime and do more with the script.

On *:ACTION:$(* $+ $me $+ *):#: {
  if ($away) {
  notice $nick Sorry $nick but I am away atm because of: $iif(!%away.reason,Be back soon,%away.reason) - Message has been logged.
  hadd -m Hilights %away.time $timestamp $1-
  if ($hget(HilightNum,%away.time) == 0) { hadd -m HilightNum %away.time 1 }
  Else { hinc HilightNum %away.time } 
  }
}

;--then you can do

Alias hls {
  msg $active I have been hilighted a total of: $hget(HilightNum,%away.time) times during the last time I was away. My last hilight being $hget(Hilights,%away.time)
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.