All pastes #617973 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-13 17:09 UTC
rendered paste body
On *:NOTICE:*:?: {
  if (%noticify == $true) {
    beep 1
  }
  if (%noticify == $false) {
    splay -p 
    inc %noticecount
    window @notices -k0
    aline 5 @notices ( $+ $timestamp $+ ) $chr(60) $+ $nick $+ $chr(62) $1-
    writeini Noticeslines.ini Notices $nick %noticecount
    writeini Noticesnick.ini Notices $nick $1-
  }
}
On *:NICK:#: {
  if (@notices == $true) {
    rline 5 @notices $readini(Noticeslines.ini,Notices,$nick) $+ - $+ $readini(Noticeslines.ini,Notices,$nick) ( $+ $timestamp $+ ) $chr(60) $+ $nick $+ $chr(62) $1-
  }
}
On *:CLOSE:#: {
  echo $?!="Really exit this window?"
}
alias noticify { 
  if ($1 == beep) {
    set %noticify $true
  }
  if ($1 == splay) {
    set %noticify $2-
  }
}