All pastes #473071 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-05-06 00:44 UTC
rendered paste body
on *:TEXT:!addadmin *:*:{ if ($address($nick,2) == $address($me,2)) { 
    if ($readini(staff.ini,staff,$address($2,2))) { 
      notice $nick $+(",$2,") is already on the staff list! 
      halt 
    } 
    else { 
      writeini staff.ini staff $address($2,2) $2 
      /notice $nick $+ $2 has been added to the staff list! | /notice $2 You've been added to $me $+ 's staff list.
    } 
  }
}
on *:TEXT:!deladmin *:*:{ if ($address($nick,2) == $address($me,2)) { 
    if (!$readini(staff.ini,staff,$address($2,2))) { 
      notice $nick $+(",$2,") was never on the Staff List to begin with! 
      halt 
    } 
    else { 
      remini staff.ini staff $address($2,2) 
      /notice $nick $2 has been deleted from the staff list. 
      /notice $2 You've been deleted from Probots staff list.
    } 
  } 
} 

on *:TEXT:!override *:*:{ if ($readini(staff.ini,staff,$address($nick,2))) { $2- }