Originally Posted By: Tomao
Code:
on !@*:topic:#superkids:{
  var %n = MrDude.SuperMan.tailpush.Geofax.repent.rox.ChopperS.DjTheWizz.DjTheW|zz.Mrdud3.superm4n
  var %w = foreskin|supe3rM4n|word3|word4|etc.
  if $istok(%n,$nick,46) { 
    ban -k # $nick 2 You're banned from setting a topic! ... please set a topic; relevant to the channelsname!
    topic $chan Open and free! (Anyone please set a topic; relevant to the channelsname.. It might spark an intersting chat!) 
  }
  elseif $istok(%w,$1-,124) { 
    mode # +t | .timer 1 $r(10,60) mode # -t
    topic # Open and free! (Anyone please set a topic; relevant to the channelsname.. It might spark an intersting chat!) 
  }
}
Just replace word3, etc..with more words you want to add, along with a pipe to divide between each word added.

I'm not sure about the empty topic. Are they using a character of some sort to set it as empty?



Thanks! I will implement it now.

Edit: There is a problem with this. Is there a way to make it ban if the word is in the topic in any way?

It only works when the topic contains ONLY one of the words that are banned..




I mean: If someone set the topic to: foreskin
..then the script works!

But if someone set the topic to: foreskin is nice
...then the script does nothing.. frown





No characters no, that is the problem, if one set a empty topic. This is how it looks: 22 14:14:45 * Curious changes topic to ''
..and after that there just is no topic set.


Last edited by gomp; 22/05/10 12:44 PM.

I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.