All pastes #579275 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-20 16:33 UTC
rendered paste body
on *:TEXT:!add-admin*:#:{ 
  i  if ($nick == anastasia700) || ($nick == Mary^) || ($nick == M_Far) {    
    if (!$2-) { 
      /notice $nick 12You Must Name A User: Ex: !add-admin CoolPerson101 
      halt 
    } 
    if (!$address($2-,3)) { 
      /notice $nick 12The User Is Not Online. I can't add him. 
      halt 
    } 
    if ($readini(aov1.ini,AOV-LIST,$address($2-,3)) == A Admin) { 
      /notice $nick Sorry $nick $+ , $2- Is Already On The The AOV Admin List    
    } 
    else { 
      /notice $nick 12Thanks $nick - I Have Now Added $2- To The AOV Admin List 
      /notice $nick 12 ( $+ $address($2-,3) $+ ) 
      /writeini -n aov1.ini AOV-LIST $address($2-,3) A Admin 
    } 
  } 
  else { 
    /notice $nick 12Access denied: Only Admin May Use This Command 
  } 
}  
on *:TEXT:!deladmin*:#:{ 
  if ($nick == anastasia700) || ($nick == mary^) || ($nick == m_far) {
    if (!$2-) { 
      /notice $nick 12You Must Name A User: Ex: !add-admin CoolPerson101 
      halt 
    } 
    if (!$address($2-,3)) { 
      /notice $nick 12The User Is Not Online. I can't add him. 
      halt 
    } 
    if ($readini(aov1.ini,AOV-LIST,$address($2-,3)) == A Admin) { 
      /notice $nick Sorry $nick $+ , $2- Is Already On The The A Admin List    
    } 
    else { 
      /notice $nick 12Thanks $nick - I Have Now Added $2- To The A Admin List 
      /notice $nick 12 ( $+ $address($2-,3) $+ ) 
      /remini -n aov1.ini AOV-LIST $address($2-,3) A Admin 
    } 
  } 
  else { 
    /notice $nick 12Access denied: Only Admin May Use This Command 
  } 
} 
on *:TEXT:!av*:#:{ 
  if ($readini(aov1.ini,AOV-LIST,$address($nick,3)) == A Admin) { 
    if (!$2-) { 
      /notice $nick 12You Must Name A User: Ex: !av CoolPerson101 
      halt 
    } 
    if (!$address($2-,3)) { 
      /notice $nick 12Error: The User Is Not Online. I can't add them. 
      halt 
    } 
    /writeini -n aov2.ini AOV-LIST $address($2-,3) AV 
    .msg $chan 3 $+ $2- 5,Has Been Added To The Auto Voice List!    
    halt    
  } 
  notice $nick 12You Dont Have The Access For This Command 
} 
ON *:JOIN:#arpc, #arpc_lobby:{    
  if ($readini(aov2.ini,AOV-LIST,$address($nick,3)) == AV ) { 
    /mode $chan +v $nick 
  } 
} 
on *:TEXT:!dav*:#:{ 
  if ($readini(aov1.ini,AOV-LIST,$address($nick,3)) == A Admin) { 
    if (!$2-) { 
      /notice $nick 12You Must Name A User: Ex: !dav CoolPerson101 
      halt 
    } 
    if (!$address($2-,3)) { 
      /notice $nick 12Error: The User Is Not Online. I can't add them. 
      halt 
    } 
    /remini -n aov2.ini AOV-LIST $address($2-,3) AV 
    .msg $chan 3 $+ $2- 5,Has Been removed from the auto voice List!    
    halt      
  } 
  notice $nick 12You Dont Have The Access For This Command 
}