All pastes #227744 Raw Edit

Something

public text v1 · immutable
#227744 ·published 2006-10-29 15:05 UTC
rendered paste body
on *:start: {
  if ($exists($mircdirAutoLoad) == $false) {
    mkdir AutoLoad
    echo -s 4AutoLoad: Directory: $mircdirAutoLoad Not Found!
    echo -s 4AutoLoad: Making $mircdirAutoLoad
  }
  elseif ($exists($mircdirAutoLoad) == $true) {
    echo -s 4AutoLoad: Directory: $mircdirAutoLoad Found!
    echo -s 4AutoLoad: Checking if scripts are loaded!
    .checkscripts
  }
}

alias checkscripts2 {
  if ($exists($mircdirAutoLoad) == $false) {
    mkdir AutoLoad
    echo -s 4AutoLoad: Directory: $mircdirAutoLoad Not Found!
    echo -s 4AutoLoad: Making $mircdirAutoLoad
  }
  elseif ($exists($mircdirAutoLoad) == $true) {
    echo -s 4AutoLoad: Directory: $mircdirAutoLoad Found!
    echo -s 4AutoLoad: Checking if scripts are loaded!
    .checkscripts
  }
}

alias checkscripts {
  echo -q $findfile($mircdirAutoLoad,*.*,0,loadcheck $1- )
}

alias loadcheck {
  var %loadcheck = $script($1-)
  if (%loadcheck == $null) {
    echo -s 4AutoLoad: Loading $1-
    .load -rs " $+ $1- $+ "
  }
  else { return $true }