Tchatting.com Forums
mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks!

User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2006, 08:20 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
channel join limit

This will kick users only, if they have joined more than 7 channels.
ops/voiced will not be kicked.

Code:
on @*:join:#: .$+(.timerwhois,$cid,$nick) 1 4 whois $nick

raw 319:*:{
  var %nochannels = $3-, %i = $comchan($2,0), %c
  if ($numtok(%nochannels,32) > 7) {
    while (%i) {
      %c = $comchan($2,%i)
      if ($2 isreg %c) && ($me isop %c) ban -k %c $2 2 You Are In Too Many Channels, Please Part Some And Rejoin.
      dec %i
    }
  }
}
if u want to increase or decrease the max channel limit, change the "7" in this code: if ($numtok(%nochannels,32) > 7)
__________________

Last edited by Cult; 05-05-2006 at 08:22 AM.
Reply With Quote
  #2  
Old 05-05-2006, 02:44 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: channel join limit

thios is for channels that wants to limit jonied channels for there ops. this will not kick the op.
it will notice him

Code:
on @*:OP:#: .$+(.timerwhois,$cid,$nick) 1 4 whois $nick

raw 319:*:{
  var %nochannels = $3-, %i = $comchan($2,0), %c
  if ($numtok(%nochannels,32) > 5) {
    while (%i) {
      %c = $comchan($2,%i)
      if ($me isop %c) NOTICE $2 2 You Are In Too Many Channels, Please Part Some.
      dec %i
    }
  }
}
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Users Abuse == ATTENTION === A #Leb -Rules And Applications 12 12-04-2007 06:24 AM
auto join Cult mIRC :: SCRIPTING & HELP 2 03-03-2006 06:23 PM
tinny auto join dialog Cult mIRC :: SCRIPTING & HELP 0 13-09-2005 04:17 PM
SOP/AOP's Rules! bilal #Leb -Rules And Applications 0 16-02-2005 05:59 AM
General Sops & Aops Rules dotleb #Leb -Rules And Applications 0 09-08-2004 07:37 PM

All times are GMT. The time now is 12:43 AM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
All data and information are copyright of DOTLeb Network