Discussion:
help please
(too old to reply)
Grumpy
2004-08-20 04:05:59 UTC
Permalink
Hi,

I am new to all this and have tried to do a simple script but it seems not
to work can some well trained eye look over it and make a suggestion, The
function only works for the first user, the rest are ignored

on !1:join:#mychann: {
if (user1 isin $nick) { /cs halfop #mychann user1 } elseif (user2 isin
$nick) { /cs halfop #mychann user2 }
elseif (user3 isin $nick) { /cs halfop #mychann user3 } elseif (user4 isin
$nick) { /cs halfop #mychann user4 }
}

thanks
replies to ***@hotmaildotcom please
Frank
2004-08-20 09:58:49 UTC
Permalink
Post by Grumpy
Hi,
I am new to all this
It´s ok :)
Post by Grumpy
and have tried to do a simple script but it seems not
to work can some well trained eye look over it and make a suggestion, The
function only works for the first user, the rest are ignored
Try it with a variable
Post by Grumpy
on !1:join:#mychann: {
if (user1 isin $nick) { /cs halfop #mychann user1 } elseif (user2 isin
$nick) { /cs halfop #mychann user2 }
elseif (user3 isin $nick) { /cs halfop #mychann user3 } elseif (user4 isin
$nick) { /cs halfop #mychann user4 }
}
on 1:join:#mychann {
if ( $nick isin %halfops ) { /cs halfop #mychan $nick }
}

and in the variables section of your mirc-editor, you add this line:

%halfops user1 user2 user3 user4 user5



This should work properly an the code is not as complicated as yours.

Greets,

Frank

Loading...