All pastes #262763 Raw Edit

!tb script

public text v1 · immutable
#262763 ·published 2006-11-30 21:36 UTC
rendered paste body
alias -l c1 return $+(14,$1-,)
alias -l c2 return $+(07,$1-,)

on *:TEXT:!setworld*:#ahoy: {
  if ($nick isop #) || ($nick ishop #) || ($address($nick,2) == $address($me,2) && ($$2 isnum) { ;so YOU dont have to be op or halfop...
    set %ownpc $$2
    set %ownpc $+ .time $ctime
    set %ownpc $+ .nick $nick
    /notice $nick New PC world set to %ownpc
    /msg #worldofpc $c2(The current) $c1(pc-world has been changed! -) $c2(Type: !world) ;no point in hiding the world if they dont need to be voice
  }
}
on $*:text:/^[@!](pcw|world)/Si:#worldofpc:if ($nick isvoice $chan) {
  /notice $nick $c1(Current PC World:) $c2(%ownpc) $+ $c1(- Last Update:) $c2($duration($calc($ctime - $eval($+(%,ownpc,.time),2)))) 
}