mIRC Home    About    Download    Register    News    Help

Print Thread
#21999 02/05/03 07:56 PM
Joined: Jan 2003
Posts: 21
J
Jay_T Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
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

#22000 02/05/03 08:12 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
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
#22001 02/05/03 08:14 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
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

#22002 02/05/03 08:25 PM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
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.

Code:
  [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....

Link Copied to Clipboard