# i need someone to help me write the execution for the voice

on *:text:!addvoice*:#: {
if ($nick isop #)
  \%file.voices = crap\voice.txt
  if (2$- == $null): {
    notice $nick Syntax Error: !addvoice <voicename>
    halt
  }
  if ($count($read(\%file.voices,w,$address($2-,0)),$address($2-,0)) == 0): {
    //write -a \%file.voices $address($2-,0)
    //notice $nick $address($2-,0) ( $2- ) Successfully Added 
  } 
else { notice $nick $2- is already a voice. } }