mIRC Home    About    Download    Register    News    Help

Print Thread
#117469 16/04/05 05:28 AM
Joined: Sep 2004
Posts: 40
U
us3rX Offline OP
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Sep 2004
Posts: 40
how come this wont work....

Code:
/join #blah,#blah1,#blah2,#blah4 key,#blah5 key


maybe mirc doesnt support it...?

Thanks for your time,
us3rX

#117470 16/04/05 05:39 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Hi us3rX. Try..
Code:
/join #Andy,#mIRC AndyPass mIRCPass


And so on.

All the best.

-Andy

#117471 16/04/05 07:32 PM
Joined: Sep 2004
Posts: 40
U
us3rX Offline OP
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Sep 2004
Posts: 40
:s i was playing around with it and that doesnt work...

Code:
/join #us3rX,#blah,#wo0t us3rX123 blah123 wo0t123


it joined the first one, then i get:
03:30:34 Error: Cannot join #blah (+k)
03:30:34 Error: Cannot join #wo0t (+k)

#117472 16/04/05 07:36 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
Is this on a ircx type server ?

Last edited by alkahol1k; 16/04/05 07:39 PM.
#117473 16/04/05 07:42 PM
Joined: Sep 2004
Posts: 40
U
us3rX Offline OP
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Sep 2004
Posts: 40
ircd... but it shouldnt matter?

#117474 16/04/05 08:13 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
yes because on ircx style servers keys for channels are made by //mode # prop OWNER <key>.So then that would let you store a key in a variable or a hash table to be called later. You see those keys from the raw prop:*: event.
Code:
raw prop:*:{
  if ($2 == ownerkey) { haltdef | unset %okey. |  echo $1  $xnick1(prop) $colon $+ $col1 ownerkey by $nick : $+ $col1 $3 | .set %okey. [ $+ [ $1 ] ] $3 }
  if ($3 == $null) || ($3 == :) { prop $1 ownerkey $rkey | kick $1 $nick $colon key clear?  }
  if ($2 == hostkey) { haltdef | unset %hkey. | echo $1 prop : $+ $col1 hostkey by $nick : $+  $3 | .set %hkey. [ $+ [ $1 ] ] $3 }
  if ($2 == onjoin) { haltdef | echo $1 prop : $nick propped onjoin in $1 to " $+  $3- $+ " }
  if ($2 == onpart) { haltdef | echo $1 prop : $nick propped onpart in $1 to " $+  $3- $+ " }
}


after storing the key make a join event and check it with if (% [ $+ [ $chan ] $+ ] .okey != $null) /join #chan1,#chan2,#chan3


The key you're talking about shows up on the on MODE event so it is harder to catch. You would have to set it as a variable or put it in a hash table and try getting into the channels from there.

so you need to check on mode : if mode == -k { blah blah blah }
or u can use my method and just save them as variables then join.

#117475 16/04/05 08:27 PM
Joined: Sep 2004
Posts: 40
U
us3rX Offline OP
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Sep 2004
Posts: 40
I know what the key is... i just want to be able to type

/join #us3rX,#blah,#wo0t us3rX123 blah123 wo0t123

instead of having to type them all out like...

/join #us3rX us3rX123
/join #blah blah123
/join #wo0t wo0t123

#117476 16/04/05 10:28 PM
Joined: Dec 2002
Posts: 59
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 59
Make an alias that does it for you e.g.:

;Syntax: /kjoin #chan pass,#chan2,#chan3 pass
/kjoin {

var %i = 1
while ($gettok($1-,%i,44)) {
/join $ifmatch
}

}

#117477 16/04/05 11:07 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Erm, he's talking about channel keys (/mode #channel +k <key>).


New username: hixxy
#117478 17/04/05 02:03 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Code:
/join #us3rX,#blah,#wo0t us3rX123,blah123,wo0t123


Just as channels are comma separated, so too are the keys. And if #us3rX for example had no key you still need to include text in place of 'us3rX123' so the server knows which keys correspond to which channels

#117479 17/04/05 04:08 AM
Joined: Sep 2004
Posts: 40
U
us3rX Offline OP
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Sep 2004
Posts: 40
ahhh, thanks laugh i could of sworn i tried that must not of, thanks again smile

us3rX

#117480 17/04/05 02:50 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
bleh


Link Copied to Clipboard