All pastes #619102 Raw Edit

pcw script

public text v1 · immutable
·published 2007-07-14 13:44 UTC
rendered paste body
on *:TEXT:!Setpcw*:#: { 
  if ($nick isop $chan) || ($nick ishop $chan) { 
    set %pcw [ $+ [ $chan ] ] $2 
    set %pctime [ $+ [ $chan ] ] $time 
    set %pcsetter [ $+ [ $chan ] ] $nick 
    msg $chan The Pest Control World has changed! Type !Pcw to view it! 
    else notice $nick Sorry, you need Op or Half-Op to set a PCW! 
  } 
} 
on *:TEXT:!Pcw*:#: { 
  if (%pcw [ $+ [ $chan ] ] == $null) notice $nick There is no PCW set for this channel! 
  else notice $nick The current PCW for $chan is %pcw [ $+ [ $chan ] ]  set by %pcsetter [ $+ [ $chan ] ] at %pctime [ $+ [ $chan ] ] 
} 
on *:TEXT:!Setpm:#: { 
  if ($nick isop $chan) || ($nick ishop $chan) { 
    set %pm [ $+ [ $chan ] ] $nick 
    msg $chan The person to PM ingame for an AOV is now: $nick $+ ! 
  } 
} 
on *:TEXT:!Pm:#: { 
  if (%pm == $null) notice $nick There is currently NO PMer set! 
  else notice $nick The current person to PM ingame for a AOV is: %pm [ $+ [ $chan ] ]