All pastes #491513 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-16 18:28 UTC
rendered paste body
alias accept {
  if (%waiting. [ $+ [ $1 ] ] == yes) {
    query $1 Pm Accepted
    var %x = 1
    while (%x < $lines(pmlog. $+ $1 $+ .txt)) {
      echo $1 $read(pmlog. $+ $1 $+ .txt,%x)
      inc %x
    }
    echo $1 9[ $+ $ME $+ 9] pm uptodate
    ;remove pmlog. $+ $1 $+ .txt
    unset %waiting. $+ $nick
  }
  Else {
    echo -a $1
    echo -a 9[ $+ $ME $+ 9] That person isnt waiting for a response, make sure you typed the name right
  }
}