Badchannel kick/ban (kick sex or bad chan)

By Lingo on Aug 14, 2008

Hi, this is my 2 job, this is a badchan proteccion, this will whois a user on join and if he on gay or sex channel this will automatic kick the user, i hope it work for u guys =)

on !*:JOIN:#: { .enable #badchan | .timerwbc 1 1 whois $nick } 
#badchan off
Raw 301:*: { halt } 
Raw 307:*: { halt } 
Raw 308:*: { halt } 
Raw 310:*: { halt } 
Raw 311:*: { halt } 
Raw 312:*: { halt } 
Raw 313:*: { halt } 
Raw 317:*: { halt } 
Raw 318:*: { .disable #badchan | halt } 
Raw 320:*: { halt } 
Raw 338:*: { halt } 
Raw 378:*: { halt } 
Raw 401:*: { halt } 
raw 319:*: { 
  if (gay isin $3-) || (sex isin $3-) { 
    var %t = $comchan($2,0) 
    while (%t) { 
      if ($me isop $comchan($2,%t)) { 
        /ban -k $comchan($2,%t) $2 2 4You not welcome for be in sex/gbad channels ((BADCHAN-PROTEC BY Lingo))
      }
      dec %t 
    } 
  } 
  halt 
} 
#badchan end

Comments

Sign in to comment.
Frine   -  May 17, 2010

Thank You ! Lingo And napa182

 Respond  
Ghost-writer   -  Jul 28, 2009

+P? you cant see what channel im in so? would you fail?

 Respond  
Abtehi   -  Mar 03, 2009

thank you :P

 Respond  
Jethro   -  Mar 01, 2009

@Abtehi: > Can you make this work in individual channel instead of globally.? All you have to do is put your own channel (the one you want the script to work in) name behind the # as such:

on !*:JOIN:#YourChannelNameHere: {
 Respond  
fahadbalboa   -  Mar 01, 2009

Nice

 Respond  
Abtehi   -  Jan 20, 2009

Can you make this work in individual channel instead of globally.? where I can set that in my channel as 500 and not affect other channels..?

 Respond  
Lingo   -  Aug 14, 2008

i just put a ejemp.. for sex and gay channel, u can put all tipe of channel like drones channels or spam, i have nothing agains gay ppl jonesy44

 Respond  
Eugenio   -  Aug 14, 2008

roflmfaoooooooo

 Respond  
AHBARAR   -  Aug 14, 2008

lol jonesy44 >:P~~ well Eugenio he was honest with u all why dont u respect that >:P~~~
and jonesy44 god gave u all men stuff then born u female so u both get with each other not tp use ur guy with guy ... then cyber -_- mate u chossed net on life >:/ .... anyway he was kidding but i used that for teaching >:P~~ (^.^)

 Respond  
Eugenio   -  Aug 14, 2008

ROFL jonesy just gtfo pft @ cyb0r and .......just nvm

 Respond  
Jonesy44   -  Aug 14, 2008

Can i ask .. what's wrong with being gay.. or being in a channel to do with sex?

 Respond  
napa182   -  Aug 14, 2008

um first off Anti i didnt post that redone one when he commented back i edited that in after the fact

 Respond  
Anti   -  Aug 14, 2008

Lol, get used to it lingo, thats napa he will redo everything like this SCRIPT!

 Respond  
napa182   -  Aug 14, 2008

um i never said it didnt work im just showing diff ways to go about it.

 Respond  
Lingo   -  Aug 14, 2008

this work perfect on DALnet i manage a 300ppl chan wich this and work perfect.

 Respond  
napa182   -  Aug 14, 2008

some server's allow the use of

mode # +b ~c: #channel

to not allow users from channels you block joining ur room.

you can also cut all those halts by useing tokens maybe like

on !*:JOIN:#: { .enable #badchan | .timerwbc 1 1 whois $nick } 
#badchan off
raw *:*: { 
  if ($istok(301 307 308 310 311 312 313 317 320 338 378 379 401,$numeric,32)) { haltdef }
  if ($numeric == 318) { .disable #badchan | haltdef } 
  if ($numeric == 319) {
    if (gay isin $3-) || (sex isin $3-) { 
      var %t = $comchan($2,0) 
      while (%t) { 
        if ($me isop $comchan($2,%t)) { 
          ban -k $comchan($2,%t) $2 2 4You not welcome for be in sex/gay channels ((BADCHAN-PROTEC BY Lingo))
        }
        dec %t 
      } 
    } 
    haltdef
  } 
}
#badchan end
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.