mIRC Home    About    Download    Register    News    Help

Print Thread
#14942 11/03/03 08:08 AM
Joined: Dec 2002
Posts: 76
A
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

#14943 11/03/03 11:38 AM
Joined: Dec 2002
Posts: 2,985
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
  }
}

#14944 11/03/03 06:40 PM
Joined: Dec 2002
Posts: 271
N
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.

#14945 11/03/03 10:25 PM
Joined: Jan 2003
Posts: 1,063
D
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!
#14946 12/03/03 02:51 AM
Joined: Dec 2002
Posts: 699
N
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 }
}


Link Copied to Clipboard