mIRC Home    About    Download    Register    News    Help

Print Thread
#105821 21/12/04 01:54 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
i have a event that deops someone if they are opped
id like to make it work for +Q as well how can this be done

code------------------------------------------------------------------
on *!:op:#:{
if (($ulevel <= 2) && ($opnick != $me)) { /mode # -o $opnick }
else { /halt }
}


The Kodokan will move you, one way or another.
#105822 21/12/04 02:05 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
on owner
Code:
on *!:op:#:{
  if $ulevel &lt;= 2 &amp;&amp; $opnick != $me { mode # -o $opnick }
} 
on *!:owner:#:{
  if $ulevel &lt;= 2 &amp;&amp; $opnick != $me { mode # -q $opnick }
}

#105823 21/12/04 03:02 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
wouldnt $opnick cease to be the correct identifier for that


The Kodokan will move you, one way or another.
#105824 21/12/04 04:30 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
No, on owner is undocumented, but $opnick is still the identifier it fills.

#105825 21/12/04 05:23 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
on *:text:!opnick*:#:{
if ($ulevel >= 3) { /mode # +o $$2 }
the above command conflicts
when i use this the other command deops the person
wht comparison can i add to stop this


The Kodokan will move you, one way or another.

Link Copied to Clipboard