Public feed #602937

scripts

public text v1 · immutable
Raw Edit
·published 2007-07-04 11:58 UTC
rendered paste body
on *:TEXT:brb*:#:{
  if (%gone. [ $+ [ $nick ] ] == $null) {
    set %away. [ $+ [ $nick ] ] $ctime
    set %reason [ $+ [ $nick ] ] $2-
    msg $chan $nick is now away Reason: %reason [ $+ [ $nick ] ]
  }
}
on *:TEXT:*:#:{
  if (%away. [ $+ [ $nick ] ] != $null) {
    msg $chan Welcome back $nick gone for: $duration($calc($ctime - %away. [ $+ [ $nick ] ] $ctime)) Reason : %reason [ $+ [ $nick ] ]
    unset %away. [ $+ [ $nick ] ]
    unset %reason [ $+ [ $nick ] ]
  }
}