mIRC Home    About    Download    Register    News    Help

Print Thread
#30381 17/06/03 12:20 PM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
If I usejoin -x #Conversion,#neco,#Wayside,#NCgamers,#Aftermath after being connected to a server the only way ive been able to introduce a channel with a key is using another instance of join.. ie:
Code:
join -x #Conversion,#neco,#Wayside,#NCgamers,#Aftermath
join -x #tribes otherkey 

anyone have any ideas about how consolidating it, as in using the key in one join instead of two

#30382 17/06/03 12:32 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
join -x #tribes,#Conversion,#neco,#Wayside,#NCgamers,#Aftermath otherkey
Should work..

#30383 17/06/03 01:07 PM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
I tried that, it just kind of skipped over it and left anything from the key point blank smirk

#30384 17/06/03 05:55 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Code:
/join -inx #chan1,#chan2,#chan3 key1,key2,key3


if a channel has no key just fill in NO_KEY or something for the key because if you give a key to a channel without +k it will just be ignored...

haven't had any problems with this


If it ain't broken, don't fix it!
#30385 17/06/03 05:58 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Thats not how you are supposed to do it, you are supposed to leave the key for the channel blank:

/join -inx #chan1,#chan2,#chan3 key1,,key3

That uses a key on #chan1 and #chan3.

#30386 17/06/03 07:52 PM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
The only way ive gotten it to work is using Doqnach's approach. For some reason if you leave the first one blank it screws the rest of them up.

#30387 17/06/03 08:11 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
; syntax: /join [-inx] <#Channel1[:password1]>,[Channel2[:Password2]],...,[ChannelN[:PasswordN]]
/j {
  if ($chr(35) !isin $1) var %params = $1, %chans = $1-, %a = 1
  else var %chans = $1-, %a = 1
  while ($gettok(%chans, %a, 44)) {
    var %curchan = $ifmatch
    if (#*:* iswm %curchan) /join %params %join $gettok(%curchan, 1, $asc(:)) $gettok(%curchan, 2, $asc(:))
    else /join %params %curchan
    /inc %a
  }
}


/j -n #king-tomato,#private:mypassword,#kingtomato,#help,#mirc:scripting

That would join all the channels, using property -n (from /join syntax) and then use a password for #private and #mirc.


-KingTomato
#30388 17/06/03 09:32 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
But that sorta eliminates the purpose of /join supporting a list of chans... saving bandwidth.

#30389 18/06/03 05:55 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I could take it a step further, and exclude channels that have keys, and join them individually So if i had:

#chan1
#chan2 bah
#chan3
#chan4 blah
#chan5
#chan6

and did /j #chan1,#chan2:bah,#chan3,#chan4:blah,#chan5,#chan6

break it down into

/join #chan1,#chan3,#chan5,#chan6
/join #chan2 bah
/join #chan4 blah


-KingTomato

Link Copied to Clipboard