xdesoto commented on a Page, Theme  -  Sep 26, 2011

I do have a question, for my Theme. how would I incorporate

alias d!t.buffer {
  if ($1 == EVENT) {
    if ($time(nn) == $hget(default,$+(t.buffer,.,$cid))) {
      return $str($chr(160),$len($timestamp))
    }
    else {
      hadd -m default $+(t.buffer,.,$cid) $time(nn)
      return $timestamp
    }
  }
  if ($1 == MSG) {
    if ($time(nn) == $hget(default,$+(t.buffer,.,$cid,.,$nick))) {
      return $str($chr(160),$len($timestamp))

    }
    else {
      hadd -m default $+(t.buffer,.,$cid,.,$nick) $time(nn)
      return $timestamp
    }
  }
}

This snippet is to help themes display the timestamp only when it changes (every minute, for example).

 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.