mIRC Home    About    Download    Register    News    Help

Print Thread
how to use all scon join a channel #189400 07/11/07 08:33 AM
Joined: Oct 2007
Posts: 92
N
nomer2007 Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
alias alljoin {

code here that joins all the scons i have connected

}

is that possible?

Re: how to use all scon join a channel [Re: nomer2007] #189401 07/11/07 08:47 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
This will (try to) join the specified channel on all "connected" server connections:
alias alljoin { scon -at1 join #$$1 }

example: /alljoin #alljoin

The -a switch performs the subsequent command at all connections (server windows), and the -t1 switch limits this to servers you are "actually" connected to (e.g. not disconnected).


Re: how to use all scon join a channel [Re: Horstl] #189416 07/11/07 02:48 PM
Joined: Oct 2007
Posts: 92
N
nomer2007 Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
thanks

Re: how to use all scon join a channel [Re: Horstl] #189422 07/11/07 03:43 PM
Joined: Oct 2007
Posts: 92
N
nomer2007 Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
oh yeah how bout if scon 1 or the main nick isn't included on the scons i wanna join?

Re: how to use all scon join a channel [Re: nomer2007] #189472 08/11/07 12:18 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
I don't get it.. please clarify what you want the alias to do and/or give an example.

Re: how to use all scon join a channel [Re: Horstl] #189476 08/11/07 01:56 AM
Joined: Oct 2007
Posts: 92
N
nomer2007 Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
;joins all scons on the channel
alias alljoin { scon -at1 join #$$1 }

;how about if there scon1,scon2,scon3,scon4 etc.
;and i only want to join all scon except scon1

Re: how to use all scon join a channel [Re: nomer2007] #189485 08/11/07 05:48 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Like this?
Code:
alias joinallx { scon -at1 if ( $!network != $$2) { join #$$1 }

/joinallx #channel ExcludedNetworksName