mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
Say I'd want everybody who would want to be in #chanB to be in #ChanA aswell. And If they are not in #ChanA, they wont be able to join #chanB or when allready there, to get kicked out.

I'm not a programmer at all, was wondering wether it was possible for a bot (who's in both channels), to check this on ppl...?

TIA

Joined: Jan 2003
Posts: 20
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Jan 2003
Posts: 20

Code:
on *:join:#chanB: {
  if ( $Nick !isin #chanA ) {
    /kick # $Nick
  }
}


untested but should work

Joined: May 2004
Posts: 24
K
Ameglian cow
Offline
Ameglian cow
K
Joined: May 2004
Posts: 24
Krayzee !ison, not !isin :tongue:

Joined: Sep 2004
Posts: 18
E
Pikka bird
Offline
Pikka bird
E
Joined: Sep 2004
Posts: 18
on *:JOIN:#: { whois $nick }
raw 319:*: if ( #chanA !isin $3- ) { /kick # $Nick }

Joined: Jan 2003
Posts: 20
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Jan 2003
Posts: 20
doh grin yeah !ison smile

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
on *:join:#chanB: {
if ( $nick !ison #chanA ) {
kick $chan $Nick
}
}
on *:part:#chanA:{
if ($nick ison #chanB) [color:purple].timerkick $+ $nick 1 5 if ($nick ison #chanB)
kick #chanB $nick
}
[/color]

The purple would give them 5 seconds to leave, if you want to kick them immedialtely just leave it out.

You might want to give a reason for kicking (just type it after the kick # $nick) or tempban them to prevent autorejoin-kick loops... (use ban -kU120 $nick 6 reason instead of the kick, 120 == 2 minutes)


Link Copied to Clipboard