Project

General

Profile

[Script] /connectall and /disconnectall aliases

Added by Per Amundsen about 8 years ago

alias disconnectall {
  var %s 0
  while (%s < $scon(0)) {
    inc %s
    scon %s
    if ($status != disconnected) {
      disconnect
    }
  }
}

alias connectall {
  var %s 0
  while (%s < $scon(0)) {
    inc %s
    scon %s
    if ($status == disconnected) {
      server
    }
  }
}