mIRC Home    About    Download    Register    News    Help

Print Thread
Block channel when #14942 11/03/03 08:08 AM
Joined: Dec 2002
Posts: 76
A
aZnLupin Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
dear,
i need script like block channel when 5 user (same & not same hostmask)
thanks

Re: Block channel when #14943 11/03/03 11:38 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Code:
ON *JOIN:#: {
  if ($nick(#,0) == 5) {
    set %ch.limit yes
    mode # +i
  }
  if ($nick(#,0) < 5 && %ch.limit == yes) {
    unset %ch.limit
    mode # -i
  }
}

Re: Block channel when #14944 11/03/03 06:40 PM
Joined: Dec 2002
Posts: 271
N
NightChillz Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
on *:join:*:{
if ($me isop $chan) && ($chan($chan).limit > 5) {
mode $chan +l 5
}
}

will set the room limit to 5 users, if it isnt already and ur are oped in that channel.

Re: Block channel when #14945 11/03/03 10:25 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Code:
on *:join:*:{
if ($me isop $chan) && ($chan($chan).limit > 5) {
mode $chan +l 5
}
}


needs to be:

on @*:join:#: { if ($chan($chan).limit > 5) { mode $chan +l 5 } }



If it ain't broken, don't fix it!
Re: Block channel when #14946 12/03/03 02:51 AM
Joined: Dec 2002
Posts: 699
N
Nimue Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
If no limit is set $chan(#).limit is not 'less than', 'equal to', or 'greater than' anything. :tongue:
Code:
on @*:join:#channel:{
  if $chan(#).limit != 5 { mode # +l 5 }
}