mIRC Homepage
Posted By: aZnLupin Block channel when - 11/03/03 08:08 AM
dear,
i need script like block channel when 5 user (same & not same hostmask)
thanks
Posted By: Watchdog Re: Block channel when - 11/03/03 11:38 AM
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
  }
}
Posted By: NightChillz Re: Block channel when - 11/03/03 06:40 PM
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.
Posted By: Doqnach Re: Block channel when - 11/03/03 10:25 PM
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 } }

Posted By: Nimue Re: Block channel when - 12/03/03 02:51 AM
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 }
}
© mIRC Discussion Forums