|
Joined: Jan 2003
Posts: 21
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 21 |
i know this is wrong but i cant fix it can someone tell me how to fix it??? thanks if ($1) && ($me isop $chan) && ($active ischan) { var %x = $address($1,3) var %y = $address($1,9) var %z = $address($1,7) mode $chan -o+bbb $1 $replace(%x($1,3),1,?,3,?,5,?,7,?,9,?) $replace(%y($1,9),2,?,4,?,6,?,8,?,0,?) $replace(%z($1,7),a,?,e,?,o,?,i,?,u,?) ECHO $colour(info) -at *** $chr(91) $+ Triban successfully on $1 $+ $chr(93) } }
well my point is just want to replace ? within those banned
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
Ok, I COULD be wrong here, but I DONT THINK you can deop an address. Maybe try this:
if ($1) && ($me isop $chan) && ($active ischan) { var %x = $address($1,3) var %y = $address($1,9) var %z = $address($1,7) mode $chan -o+bbb $1 $1 $replace($address($1,9),2,?,4,?,6,?,8,?,0,?) $replace($address($1,7),a,?,e,?,o,?,i,?,u,?) ECHO $colour(info) -at *** $chr(91) $+ Triban successfully on $1 $+ $chr(93) }
Also, something else I noticed:
$replace(%x($1,3),1,?,3,?,5,?,7,?,9,?) $replace(%y($1,9),2,?,4,?,6,?,8,?,0,?) $replace(%z($1,7),a,?,e,?,o,?,i,?,u,?)
replace wont work like that. %x/%y/%z wont do ($1,3) etc. Try using this instead:
mode $chan -o+bbb $1 $replace(%x,1,?,3,?,5,?,7,?,9,?) $replace(%y,2,?,4,?,6,?,8,?,0,?) $replace(%z,a,?,e,?,o,?,i,?,u,?)
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Dec 2002
Posts: 2,033
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,033 |
mask types also go from 10 - 19
Example for SomeNick!SomUser@ACC1F242.ipt.aol.com $address(somenick,3) would be *!*someuser@*.ipt.aol.com $address(somenick,13) would be *!*someuser@ACC?F???.ipt.aol.com
|
|
|
|
Joined: Dec 2002
Posts: 417
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 417 |
I think it would be easer to list the nicks who you don't want to have ops in the user list then to edit your script for each nick. Now if someone is oping a unwanted nick as an op. Just turn on OPGUARD Chanserv will deop them. [color:red]
on *:op:#YOURCHAN: {
if $ulist($address($opnick,5)) {
mode # -o $opnick
}
}
[/color]
Intelligence: It's better to ask a stupid question, then to prove it by not asking....
|
|
|
|
|