Public feed #602245

Someone

public text v1 · immutable
Raw Edit
·published 2007-07-03 23:39 UTC
rendered paste body
on *:TEXT:!check:#PCPlace: {
  if ($me != %botnick) { halt }
  if ($nick !isreg $chan) {
    if ($readini(PestControl.ini, n, Sets, $nick) == $null) {
      notice $nick You haven't set any worlds | halt
    }
    notice $nick You have set $readini(PestControl.ini, n, Sets, $nick) worlds
  }
  if ($nick isreg $chan) {
    if ($readini(PestControl.ini, n, Suggests, $nick) == $null) {
      notice $nick You haven't scouted any worlds | halt
    }
    notice $nick You have scouted $readini(PestControl.ini, n, Suggests, $nick) worlds
  }
}

on *:TEXT:!check*:#PCPlace: {
  if ($me != %botnick || $2 == $null) { halt }
  if ($2 !isreg $chan) {
    if ($readini(PestControl.ini, n, Sets, $2) == $null) {
      notice $nick $2 hasn't set any worlds | halt
    }
    notice $nick $2 has set $readini(PestControl.ini, n, Sets, $2) worlds
  }
  if ($2 isreg $chan) {
    if ($readini(PestControl.ini, n, Suggests, $2) == $null) {
      notice $nick $2 hasn't scouted any worlds | halt
    }
    notice $nick $2 has scouted $readini(PestControl.ini, n, Suggests, $2) worlds
  }
}