mIRC Home    About    Download    Register    News    Help

Print Thread
#155330 05/08/06 04:34 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
is there a command to join all server channels at once?
or somehow loop through the channel list and join all channels.

#155331 05/08/06 04:37 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
I bet it's possible, but you will need a lot of timers.
I join like 15 channels when I start, but that already required a lot of timers.

Imagine all channels on a server laugh

Dunno the answer to your question though, you need a way to retreive all channels currently available on a server....

#155332 05/08/06 04:38 PM
Joined: Jul 2006
Posts: 53
O
Babel fish
Offline
Babel fish
O
Joined: Jul 2006
Posts: 53
not that I am aware of. When you log onto irc you will see something like CHANLIMIT=#:20 show up in status . This means that if there are 50 channels on the network the most you could join would be 20 of them.

#155333 05/08/06 04:45 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Assuming you're on a small, personal network, you might try the following:

WARNING This could get you kicked or banned from an IRC server. It's not a great idea to go on to DALnet, undernet, etc. and try this out.
Code:
alias joinall {
  .enable joinall
  /set %joinall.ticks $ticks
  /list
}
#joinall off
raw *:*: {
  if ($numeric == 322) {
    if (!%joinall.hide) {
      /window -h "channels list"
      /inc %joinall.hide
    }
    .timer -m 1 $calc(($ticks - %joinall.ticks) * 10) /join $2
  }
  else if ($numeric == 323) {
    /window -c "channels list"
    .disable #joinall
    /unset %joinall.ticks %joinall.hide
  }  
}
#joinall end


*untested, as I don't have a small enough network to try this on wink


-KingTomato
#155334 05/08/06 04:59 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
all it does is retrieve the channels and show them just like in the /list command
joining doesn't take affect
the server is between 10-30 channels and the code is for somekind of bot

#155335 05/08/06 05:10 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Oops, small error:

Code:
alias joinall {
  .enable #joinall
  /set %joinall.ticks $ticks
  /list
}

#joinall on
raw *:*: {
  if ($numeric == 322) {
    if (!%joinall.hide) {
      /window -h "channels list"
      /inc %joinall.hide
    }
    .timer -m 1 $calc(($ticks - %joinall.ticks) * 10) /join $2
  }
  else if ($numeric == 323) {
    /window -c "channels list"
    .disable #joinall
    /unset %joinall.ticks %joinall.hide
  }  
}
#joinall end


-KingTomato
#155336 05/08/06 05:36 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
thank you very much

#155337 06/08/06 09:27 AM
Joined: Feb 2005
Posts: 342
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
Just a small note, many IRC servers limit the amount of channels you are able to be in.

For instance:

NETWORK=DALnet SAFELIST MAXBANS=100 MAXCHANNELS=10 CHANNELLEN=32 KICKLEN=307 NICKLEN=30


Link Copied to Clipboard