|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
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
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
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.
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.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
Thanx
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
Hmmm i just tested that and it doesnt seem to work
on @1:op:#: {
if $read(blacklist.txt, s, $opnick) {
mode $chan -o $ifmatch
}
}
thats what i have
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Can you include 2-3 lines of what is contained in the file?
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
Well just nick in the format of 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
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
try changing that $ifmatch to $opnick.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
ok done that it looks like :
on @1:op:#: {
if $read(blacklist.txt,s,$opnick) {
mode $chan -o $opnick
}
}
but still nothin
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
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
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
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
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
swearing.mrc Just for you >:D
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 191
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 191 |
Try using the w switch in place of the s switch.
on @1:op:#: {
if $read(blacklist.txt,[color:red]w[/color],$opnick) {
mode $chan -o $opnick
}
}
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
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
|
|
|
|
Joined: Dec 2002
Posts: 1,237
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,237 |
Thats funny cause it works for me...
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
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
|
|
|
|
|