All pastes #427995 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-07 05:11 UTC
rendered paste body
on *:TEXT:.set *:#adesigns:{ 
  if ( $nick isop $chan ) { var %newcmd . $2
    writeini adcommands.ini commands %newcmd $3-
    msg $chan Created Command: . $+ $2
    return
  }
  else { msg $chan You do not have access to that command. }
}

on *:TEXT:.unset *:#adesigns:{ 
  if ( $nick isop $chan ) { var %newcmd . $2 
    remini adcommands.ini commands %newcmd
    msg $chan Deleted Command: . $+ $2
    return
  }
  else { msg $chan You do not have access to that command. }
}

on *:TEXT:*:#adesigns:{ 
  if ( $1 == $readini(adcommands.ini,commands,$1) ) { 
    msg $chan $readini(adcommands.ini,commands,$1)
    return
  }
  else { return }
}