Ban Bad Channels

By sukhbira on Jun 12, 2014

The Bad Channel script requires some knowledge of RAW as well as $comchan and loops, and some swear word checking skills as well.
The basics behind this kicker is as follows:

ON !*:JOIN:#: { whois $nick }
raw 319:*: {
  IF ((xxx isin $3-) || (porn isin $3-) || (warez isin $3-) || (pub isin $3-)) {
    VAR %t = $comchan($2,0)
    WHILE (%t) {
      IF ($me isop $comchan($2,%t)) {

        ban -u60 $comchan($2,%t) $2 11
        kick $comchan($2,%t) $2 go back to hell!
      }
      DEC %t
    }
  }
}

Comments

Sign in to comment.
[85]   -  Jun 17, 2014

If u're using Unreal IRCD, u can simply ban all channels u want.
/mode #yourchan +b ~c:#bannedchan

 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.