mIRC Home    About    Download    Register    News    Help

Print Thread
what's wrong #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

Re: what's wrong #22000 02/05/03 08:12 PM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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
Re: what's wrong #22001 02/05/03 08:14 PM
Joined: Dec 2002
Posts: 2,013
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,013
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

Re: what's wrong #22002 02/05/03 08:25 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
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....