mIRC Home    About    Download    Register    News    Help

Print Thread
Modes #117633 17/04/05 10:43 PM
Joined: Apr 2005
Posts: 3
L
LODsqua Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Apr 2005
Posts: 3
So we all know when scripting for op it would be $op, for halfop would be $help. Ect. However, I can't seem to find out what is +a. I'm trying to write a complete script with all channel/user modes yet I can't seem to find it. Could anyone help?

Re: Modes #117634 17/04/05 10:52 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well firstly we don't all know when scripting op would be $op etc. It'd be $opnick for the nickname opped and $nick for the nick giving the operator status. And for half operator status it'd be $hnick vice versa.

That aside, +a means channel protection and therefore cannot be kicked. I don't think there is any specific event like On OP/HELP etc. You'd need to parse the channel mode using On RAWMODE.

/help On RAWMODE

-Andy

Re: Modes #117635 17/04/05 10:54 PM
Joined: Apr 2005
Posts: 3
L
LODsqua Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Apr 2005
Posts: 3
Woopsie, I got confused. I'm currently using:

on *:op:*: { if ($opnick == $me) { msg $chan Thanks for the freaking op status, $nick $+ ! I love you. } }
on *:deop:*: { if ($opnick == $me) { msg $chan Wtf are you doing, $nick $+ ? Taking away my op status. ;-; } }


I have it all working for all statuses(op(@),halfop(%),voice(+),owner(~)). I'm just having a hard time finding protection(+a, &). I just can't seem to find it though. Sorry if I got off the post you just posted. ^^

Last edited by LODsqua; 17/04/05 10:56 PM.
Re: Modes #117636 17/04/05 11:06 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Something like..

Code:
on *:rawmode:#: {
  if ($1 == +a) && ($istok($1-,$me,32)) { ... }
}


The server I am on doesn't support +a so the code is untested.

All the best,

-Andy

Re: Modes #117637 17/04/05 11:16 PM
Joined: Apr 2005
Posts: 3
L
LODsqua Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Apr 2005
Posts: 3
It works, thanks. smile

Re: Modes #117638 17/04/05 11:19 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. smile