All pastes #908504 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-18 15:07 UTC
rendered paste body
alias ajoin {
  if ($1 == help) {
    echo -a /ajoin join - To join all your channels in the AutoJoin list.
    echo -a /ajoin list - To view all the channels in your AutoJoin list.
    echo -a /ajoin addall - To add all the channels you're currently in to your AutoJoin list.
    echo -a /ajoin clear - To clear your autojoin list.
  }
  elseif ($1 == addall) {
    echo -a Adding all channels you're currently in.
    var %x = 0 
    while (%x < $chan(0)) { 
      inc %x
      write -n AutoJoinlist.txt $chan(%x) $+ ,
    }
  }
  elseif ($1 == join) {
    join $read(AutoJoinlist.txt)
    echo -a Joined all channels.
  }
  elseif ($1 == list) {
  echo -a $read(Autojoinlist.txt) 
  }
  elseif ($1 == clear) {
    write -c autojoinlist.txt
    echo -a Cleared autojoin list.
    else {
      echo -a Error.
    }
  }