mIRC Home    About    Download    Register    News    Help

Print Thread
#168235 05/01/07 06:53 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Code:
if($me isop $chan)

This is an operator.
But what is the code for channelowner?

Code:
if($me isowner $chan)

That doesn't work frown

Greetzz

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
if ($nick($chan,$nick,q)) {  }

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
That assumes q is the mode for owner on that network, doesn't it?


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Yeah. You could also try the symbol:

Code:
if ($nick($chan,$nick,~)) {  }

Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Well i can use both by using this code right?

Code:
if ($nick($chan,$nick,q)) || ($nick($chan,$nick,~)) {  }

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Yeah.

Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Well that is working sofar.
But i can't get it to work for $iif
I also have some options in a menu that are for owner eyes only.
In that menu i have:
Code:
$iif($me isop $chan,SOP,)


I thought the orther code would also work with $iif but it doesn't.
What needs to be changed so it works?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
$iif($nick($chan,$me,q) || $nick($chan,$me,~),SOP)

Note that you don't need a , at the end of an $iif when you only are showing the $true action and $false is left off.


Invision Support
#Invision on irc.irchighway.net
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
thanks guys .... and by the way i was also looking for "a" as in owner.


Link Copied to Clipboard