All pastes #360619 Raw Edit

Someone

public text v1 · immutable
·published 2007-02-17 16:35 UTC
rendered paste body
on *:text:!setpcw *:#: {
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($2 isnum 1-138) {
      set %pcwon [ $+ [ $chan ] ] on
      set %pcw [ $+ [ $chan ] ] $2
      set %pcwnick [ $+ [ $chan ] ] $nick
      set %pcwtime [ $+ [ $chan ] ] $ctime
      msg $chan PC world updated to $2 by $nick at $time !
    }
    else {
      notice $nick haha very funny $2 isnt a valid world -.-
    }
  }
  else { 
    notice $nick you need to be op or hop to do that
  }
}


on *:TEXT:!pcw:#:{
  if (%pcwon [ $+ [ $chan ] ] == on) {
    notice $nick the current pcw for $chan is %pcw [ $+ [ $chan ] ] set by %pcwnick [ $+ [ $chan ] ] $+ . This pcw was set $duration($calc($ctime - $eval($+(%,pcwtime,$chan),2))) minutes ago
  }
}

on *:TEXT:!pc:#:{
  if (%pcwon [ $+ [ $chan ] ] == on) {
    notice $nick the current pcw for $chan is %pcw [ $+ [ $chan ] ] set by %pcwnick [ $+ [ $chan ] ] $+ . This pcw was set $duration($calc($ctime - $eval($+(%,pcwtime,$chan),2))) minutes ago
  }
}

on *:TEXT:!world:#:{
  if (%pcwon [ $+ [ $chan ] ] == on) {
    notice $nick the current pcw for $chan is %pcw [ $+ [ $chan ] ] set by %pcwnick [ $+ [ $chan ] ] $+ . This pcw was set $duration($calc($ctime - $eval($+(%,pcwtime,$chan),2))) minutes ago
  }
}

on *:TEXT:@pcw:#:{
  if (%pcwon [ $+ [ $chan ] ] == on) {
    msg $chan the current pcw for $chan is %pcw [ $+ [ $chan ] ] set by %pcwnick [ $+ [ $chan ] ] $+ . This pcw was set $duration($calc($ctime - $eval($+(%,pcwtime,$chan),2))) minutes ago
  }
}