Discussion:
Please help! - Example Code Included.
(too old to reply)
.
2003-08-06 20:49:37 UTC
Permalink
Does anyone know why the !half and !voice wouldn't work in the code below?
The !ops works and the nicks have been given levels 3,4,5,7 and 8.
We have already tried assigning >=5 to the nicks but still the only command
that will work is !ops.
If you have any suggestions at all, please reply.

on 3:TEXT:!voice*:#Digital-Update: {
( $2 == $null ) {
v $nick
}
else {
v $2-
}
; halt
}
on 4:TEXT:!half*:#Digital-Update: {
if ($2 == $null ) {
halfop $nick
}
else {
halfop $2-
}
; halt
}
on 5:TEXT:!ops*:#Digital-Update: {
if ( $2 == $null ) {
op $nick
}
else {
op $2-
}
halt
}
Shtoopid...
2003-08-07 10:20:44 UTC
Permalink
paste your alias in here too... maybe the problem lies there?
replace your "v $nick" with "mode # +v $nick"
if that works, then your alias is cheesed...
Post by .
Does anyone know why the !half and !voice wouldn't work in the code below?
The !ops works and the nicks have been given levels 3,4,5,7 and 8.
We have already tried assigning >=5 to the nicks but still the only command
that will work is !ops.
If you have any suggestions at all, please reply.
on 3:TEXT:!voice*:#Digital-Update: {
( $2 == $null ) {
v $nick
}
else {
v $2-
}
; halt
}
on 4:TEXT:!half*:#Digital-Update: {
if ($2 == $null ) {
halfop $nick
}
else {
halfop $2-
}
; halt
}
on 5:TEXT:!ops*:#Digital-Update: {
if ( $2 == $null ) {
op $nick
}
else {
op $2-
}
halt
}
Loading...