mIRC Home    About    Download    Register    News    Help

Print Thread
#28926 10/06/03 12:32 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Code:
 
on 1:op:#: {
  if $read(blacklist.txt) {
    if $opnick == $ifmatch { mode $chan -o $ifmatch }
  }
}
 

Should that work
blacklist.txt contains the blacklisted ppl


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28927 10/06/03 12:36 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Probably not, because $read(blacklist.txt) reads a random line, you probably want to test if ANY line == the $nick.
Code:
on @1:op:#: {  
   if $read(blacklist.txt,s,$opnick) {    
      mode $chan -o $ifmatch 
   }
} 

That tests if there is a line in the file that starts with the value of $opnick. I also added the @ to make it so it doesn't trigger if you are not an op.

#28928 10/06/03 12:41 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Thanx smile


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28929 10/06/03 12:49 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Hmmm i just tested that and it doesnt seem to work
Code:
on @1:op:#: {    
  if $read(blacklist.txt, s, $opnick) {  
    mode $chan -o $ifmatch    
  }
} 
 

thats what i have


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28930 10/06/03 12:52 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Can you include 2-3 lines of what is contained in the file?

#28931 10/06/03 12:57 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Well just nick in the format of
Code:
  
Whiz`
Kater`
Breakerul

and like that
cos i have setup in popups so when i click on black list it adds that person to the txt

Last edited by andymps; 10/06/03 12:59 AM.

Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28932 10/06/03 12:59 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
try changing that $ifmatch to $opnick.

#28933 10/06/03 01:03 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
ok done that it looks like :
Code:
  
on @1:op:#: {    
  if $read(blacklist.txt,s,$opnick) {  
    mode $chan -o $opnick    
  }
} 


but still nothin


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28934 10/06/03 02:02 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
also im lookin to devise a script that so when someone swears it quotes what was said and a warning and kicks em if they do it again but it doesnt kick ops

can any1 help

Last edited by andymps; 10/06/03 02:02 AM.

Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28935 10/06/03 02:41 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
cos i get the on text bit appart from how do u make it identify 1 word from a sentance and if that word is in a txt file with loads of swear words in?


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28936 10/06/03 03:21 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
swearing.mrc Just for you >:D


-KingTomato
#28937 10/06/03 09:20 AM
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
Try using the w switch in place of the s switch.

Code:
  
on @1:op:#: {
  if $read(blacklist.txt,[color:red]w[/color],$opnick) {
  mode $chan -o $opnick
 }
}
 


#28938 10/06/03 03:04 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Thnx,
KingTomato, i clicked that link and it says page cannot be displayed?


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#28939 10/06/03 04:34 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Thats funny cause it works for me...

#28940 10/06/03 04:57 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922

#28941 10/06/03 05:19 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
thanks online, thats what happens after midnight--all you senses leave you. Including (but not limited to) typing. heh


-KingTomato

Link Copied to Clipboard