hi
/mode $chan +v $nick
and
else mode $chan +v $nick??????
no need for all that "halt"
for on join event $address($nick,2) = $wildsite
u can use a local alias for no repetition
your code can be shorter and with 35 lines not 54 lines
like that
alias -l wcomd {
tokenize 32 $strip($1-)
if ($2 isop $1) {
if ($4) && ($4 ison $1) {
if ($istok(!op.!hop,$3,46)) {
var %cmd $replace($3,!op,op,!hop,halfop),%x $iif(%cmd == op,halfop,op)
if ($readini(rank.ini,$1,$address($4,2)) == %cmd) {
notice $2 $4 is currently on the $v1 list, please remove $4 from the $v1 list before you add them to the %x list.
}
else writeini rank.ini $1 $address($4,2) %x
notice $2 $4 has been added to the %x list
}
elseif ($istok(!deop.!dehop,$3,46)) {
var %cmd $replace($3,!deop,op,!dehop,halfop),%x $iif(%cmd == op,halfop,op)
if !$readini(rank.ini,$1,$address($4,2)) {
notice $2 $4 is not on the %cmd list
}
else remini rank.ini $1 $address($4,2)
notice $2 $4 has been taken off the %x list
}
var %mode $replace($3,!op,+o,!deop,-o,!hop,+h,dehop,-h)
mode $1 %mode $4
}
else notice $2 syntaxe: !<cmd> <nick> e.g: !op Bamboo
}
else notice $2 access denied
}
on *:TEXT:*:#:if ($istok(!op.!hop.!deop.!dehop,$strip($1),46)) wcomd # $nick $1-
on !*:JOIN:#:{
if ($istok(op.halfop,$readini(rank.ini,$chan,$wildsite),46)) {
var %mode $replace($readini(rank.ini,$chan,$wildsite),op,+o,halfop,+h)
mode # %mode $nick
}
else mode # +v $nick
}