Bad Chan

By madcap on Oct 26, 2007

Basically just allows you to stop people from certain chans joining your chan. If someone who is in #badchan or #badchan2 joins your channel, this script will ban them.

Usage:

-Edit #yourchan and #badchan to your channel name and the chan you want banned.
-Put the code in Remotes (alt+R)

Note:

You can have as many banned chans as you want, just edit the if statement, eg:

if (#badchan isin $3-) || (#badchan2 isin $3-) || (#badchan4 isin $3-) || (#badchan4 isin $3-) {

or just one chan would be: if (#badchan isin $3-) {

on *:join:#:{
if ($chan == #yourchan) whois $nick
}

raw 319:*:{
  if (#badchan isin $3-) || (#badchan2 isin $3-) {
    msg #yourchan $2 is in a banned channel.
    ban #yourchan $2
  }
}

Comments

Sign in to comment.
napa182   -  Sep 05, 2008

well also if the server you are on supports mode +b ~c:
then you can do

alias badchan { mode # +b ~c: $+ $$?"Enter Bad Cannel Ex: #lobby" }
 Respond  
xplo   -  Sep 05, 2008

This coule be

on *:join:#:{
if ($chan == #yourchan) whois $nick
}

like this

on *:join:#yourchan:{
 whois $nick
}

:)

 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.