Skip to content
MSN

crap again

A TG007 community discussion started by [::X-System::].

Discussion 3 posts
Page 1 of 1
Open
Topic #839 · 3 published posts · 479 views

on *:TEXT:*:#:{  
 var %i = 1   
 while ($gettok($1-,%i,32)) {  
   if ($read(remote\BadWord.txt,w,$ifmatch) == $ifmatch) {  
     $TestDeWord
   }   
   inc %i 
 }  
}

alias TestDeWord {
 if (%reacti0n == warn) {
   msg # $replace(%warnmessage,<nick>,$nick)
 }
 elseif (%reacti0n == kick) {
   if (%deny == on) {
     access # add deny $address($nick,1) %denytime
     kick # $nick $replace(%kickmessage,<nick>,$nick) (Access ban set for %denytime minutes)
   }
   else {
     kick # $nick $replace(%kickmessage,<nick>,$nick)
   }
 }
 else { halt }
}


 

whats wrong with that ?!

aint working >_<

Edited Jul 10, 2004 12:13 AM by [::X-System::]

on me:*:join:#:hop #

are all of your vars set, cuz it seems to work for me:S

 

%reacti0n kick
%deny on
%denytime 1
%kickmessage lala <nick>
%warnmessage lala <nick>

 

*edit- also do you actually have a yourmIRCfolder\remote\BadWord.txt?

Edited Jul 10, 2004 1:34 AM by SudsyUncle

What one man can do, another can do!

yes sudsy, i do have the vars set, and the badword.text

 

if it was about them the script wud show an error msg showing them, but i guess its in the code =\

on me:*:join:#:hop #