mIRC Home    About    Download    Register    News    Help

Print Thread
if not join join another #60806 17/11/03 07:22 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
Hi, it is possible to control if you can join a channel and if you can't enter in another? Thanks.

Re: if not join join another #60807 17/11/03 07:29 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
xplain pliz...

Re: if not join join another #60808 17/11/03 07:41 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
if you can't enter a channel because you are banned or something.. the script decide to make you enter in another channel... is it possible?

Re: if not join join another #60809 17/11/03 08:18 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
example: the script makes me enter in #mirc but I'm banned so it makes me enter in #mirc2
I hope you understand... smile

Re: if not join join another #60810 17/11/03 08:48 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
raw 474:& #mirc *:join #mirc2

If banned from #mirc, join #mirc2

Re: if not join join another #60811 17/11/03 08:51 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
but this is valid only if you are banned, and if the channel has a key or is on invite...?

Re: if not join join another #60812 17/11/03 10:12 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
For invite,
  • raw 473:& #mirc *:join #mirc2
and for key:
  • raw 475:& #mirc *:join #mirc2

Re: if not join join another #60813 18/11/03 11:53 AM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
and to auto-increment the number...
example: Mirc1 has a key -> Mirc2 has a key -> Mirc3 is free (join)
is possible?

Re: if not join join another #60814 18/11/03 12:26 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
raw 473:& #mirc*:join $left($2,5) $+ $calc($mid($2,6) + 1)
raw 474:& #mirc*:join $left($2,5) $+ $calc($mid($2,6) + 1)
raw 475:& #mirc*:join $left($2,5) $+ $calc($mid($2,6) + 1)

Re: if not join join another #60815 18/11/03 04:34 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
but this works only for channel #mirc?
is not possible to extend to all channels you join?

Re: if not join join another #60816 18/11/03 04:57 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Not the prettiest script but..
Code:
raw 473:*:{
  .echo -q $regex(next,$2,(\d+)$) 
  join $iif($left($2,- $+ $len($regml(next,1))),$ifmatch,$2) $+ $calc($regml(next,1) + 1)
}
raw 474:*:{
  .echo -q $regex(next,$2,(\d+)$) 
  join $iif($left($2,- $+ $len($regml(next,1))),$ifmatch,$2) $+ $calc($regml(next,1) + 1)
}
raw 475:*:{
  .echo -q $regex(next,$2,(\d+)$) 
  join $iif($left($2,- $+ $len($regml(next,1))),$ifmatch,$2) $+ $calc($regml(next,1) + 1)
}


Edit: It seems to bugger up on channels with numbers in (perhaps not surpisingly). Ill try to fix..
Edit2: Think I fixed it.

Re: if not join join another #60817 18/11/03 05:06 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Btw you don't have to specify pattern name in $regex and $regml, because $regml lets you reference to the last regex match: //if $regex(a,(\w)) { echo -a $regml(1) }

Re: if not join join another #60818 18/11/03 06:23 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
it seems work!! great! cool