All pastes #395705 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-15 07:11 UTC
rendered paste body
on *:TEXT:.deluser*:*:{
  if ($nick !isop %home) {
    msg $chan %access
    halt 
  }
  if ($readini(operators/user.ini,$address($2,2),$address($2,2)) == $null) {
    msg $chan %skin1 Access %skin2 User Is Not On The Userlist! %skin3
    halt
  }
  else { 
    remini operators\user.ini $address($2,2) $address($2,2) 
    msg $chan %skin1 $2 %skin2 $address($2,2) %skin2 Deleted: $asctime %skin3
  }
}

on *:TEXT:.adduser*:*:{
  if ($nick !isop %home) {
    msg $chan %access
    halt 
  }
  if ($2 == $null) {
    msg $chan %skin1 Access %skin2 You Must Enter A NICK After $1 %skin3
    halt
  }
  if ($readini(operators/user.ini,$address($2,2),$address($2,2)) !== $null) {
    msg $chan %skin1 Access %skin2 User Is Already On The Userlist! %skin3
    halt
  }
  else { 
    writeini operators\user.ini $address($2,2) $address($2,2) NICK: $2 HOST: $address($2,2) ADDED: $asctime
    msg $chan %skin1 $2 %skin2 $address($2,2) %skin2 ADDED: $asctime %skin3
  }
}

on *:TEXT:.a:#:{
  if (!$readini(operators/user.ini,$address($nick,2),$address($nick,2))) {
    msg $chan %skin1 Access %skin2 You Are Not On The User List! %skin3
    halt
  }
  else {
    msg $chan %skin1 Access %skin2 $readini(operators/user.ini,$address($nick,2),$address($nick,2)) %skin3  
  }
}