mIRC Home    About    Download    Register    News    Help

Print Thread
#56765 22/10/03 02:16 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
i have maded on nicklist popup this:

$iif($me isop #, Op modes, $style(2) Op modes)
.$iif($me isop #, ( +o ) deop, $style(2) ( +o ) op):/op $1 $2 $3
.$iif($me isop #, ( -o ) deop, $style(2) ( -o ) deop):/deop $1 $2 $3

and it enables those options IF i am OP in chan and disables if i am NOT op in chan... and thatz ok

but i have same thing but with halfop

and i tried to combine --> if $me ishop with
kick and ban options

now better described:

when i am op i can kick/ban, wehn i am not then i cant, i tried same with helpop mode BUT then it wont work when i am op and vice versa... it works ONLY IF i am OP OR when i am HOP, not with both cases:

code for kick/ban:

$iif($me isop #, Kick/Ban, $style(2) Kick/Ban)

but i cant make combined

$iif($me isop #, Kick/Ban, $style(2) Kick/Ban)
$iif($me ishop #, Kick/Ban, $style(2) Kick/Ban)

so it cant simultaneusly work both...

if some1 understnd me and can help i would be gratefull


#56766 22/10/03 02:32 PM
Joined: Sep 2003
Posts: 58
S
Babel fish
Offline
Babel fish
S
Joined: Sep 2003
Posts: 58
I could be wrong here :

I think this will do the trick :

Code:
 
$iif($me ishop #, Op modes, $style(2) Op modes)
.$iif($me isop #, ( +o ) deop, $style(2) ( +o ) op):/op $1 $2 $3
.$iif($me isop #, ( -o ) deop, $style(2) ( -o ) deop):/deop $1 $2 $3
.$iif($me ishop #, Kick/Ban, $style(2) Kick/Ban): /ban $1 $2 $3 | /kick $1 $2 $3


If i'm right mIRC will also show HOP commands if you're a OP or OWNER.

So it's actually ISHOP (or higher)

I hope this will work for you...

Grtzzz


***************************
To chat, or not to chat.
That's the question
#56767 22/10/03 03:41 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
hehe nice try but that is the same i have posted

the problem is only at kick ban section, i just pasted op/deop section so some1 can realise the trick

i already gave
.$iif($me ishop #, Kick/Ban, $style(2) Kick/Ban): /ban $1 $2 $3 | /kick $1 $2 $3

but if i put that, then when i am opped i cant issue that command, but if i replace ISHOP with ISOP then i cant issue that command when i am HOP-ed...

- still on start

but thanx for trying

#56768 22/10/03 04:14 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
.$iif(($me !ishop #) || ($me !isop #), $style(2)) Kick/Ban: /ban $$1 $2 $3 | /kick $$1 $2 $3

and I wonder how you are gonna fill that $2 and $3... because $1 is the first selected nick, and $2 is the second, and $3 is the third... if you want to be able to give these some meaning you should use $?

.$iif(($me !ishop #) || ($me !isop #), $style(2)) Kick/Ban: /ban $$1 3 | /kick # $$1 $?="reason:"


If it ain't broken, don't fix it!
#56769 22/10/03 04:41 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
Code:
;alias
_pop.op {
  if ($me isop # || $me ishop #) { return $1 }
}
;and popup
$_pop.op(Control)
.Kick:{ blabla }
.Ban:{ blabla }




Go ahead, jump. 100,000 lemmings can't be wrong.
#56770 22/10/03 07:02 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
actually, it works for kick,
but how about this:

Op modes
.$iif($me isop #, ( +o ) op, $style(2) ( +o ) op):/op $1 $2 $3 $4
.$iif($me isop #, ( -o ) deop, $style(2) ( -o ) deop):/deop $1 $2
.-
.( +h ) halfop:/mode $chan +h $1 $2 $3 $4 $5 $6 $7 $8 $9 $10
.( -h ) dehalfop:/mode $chan -h $1 $2 $3 $4 $5 $6 $7 $8 $9
.-
.( +v ) voice:/voice $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12
.( -v ) devoice:/devoice $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11


i tried with

.$iif($me ishop #, ( +h ) hop, $style(2) ( +h ) halfop:/mode $chan +h $1 $2

etc, coz when you r half op you cant +h or +o others

but when i put that code in my popups the popup with halfop dissapears

and i want to make that when i am +h that i cant +h others
(to popup be freezed)
how to do it?

Last edited by bunar; 22/10/03 07:24 PM.
#56771 22/10/03 07:49 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
ok, i solved it, thanx all again


Link Copied to Clipboard