Project

General

Profile

[Script] Reconnect All Toolbar Icon

Added by Per Amundsen about 10 years ago

Adds a Toolbar icon to reconnect all disconnected servers, and also adds a /reconnectall command.

A example icon is attached.

Script:

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

alias -l loadicon {
  toolbar -d reconnectall
  toolbar -a reconnectall "Reconnect All" reconnect.png /reconnectall
}

on *:LOAD:loadicon
on *:START:loadicon

    (1-1/1)