mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2018
Posts: 2
I
Iseeyou Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jan 2018
Posts: 2
Hello guys!

I would require some help regarding this script:

Code:
on *:TEXT:*:#modbot:{
  if $read(profanity.txt,w,$replace($1-,$chr(32),$chr(95))) {
  msg #bottest !ban $right($nick,-2) 6 profanity }
  elseif $read(badwords.txt,w,$replace($1-,$chr(32),$chr(95))) {
  msg #bottest !ban $right($nick,-2) 2 bad word } 
  else { halt }
}


This works just fine, if somebody writes "table" or "chair" and "table" is in the profanity.txt, or if the word "chair" is in the badwords.txt, it sends a ban command to the other channel, where a bot bans the username(-2 characters).

My only problem is, that if somebody writes "I am sitting on the chair", or "The food is on the table", then nothing happens.

Please somebody fix the script, so it activates even if somebody types asdasdchairasdasd or skhslkjnhkTABLEasdhnfslh.

Thank you for your help in advance. smile

Joined: Jan 2018
Posts: 2
I
Iseeyou Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jan 2018
Posts: 2
Whatever, fixed. smile


Link Copied to Clipboard