mIRC Homepage

Modes

Posted By: LODsqua

Modes - 17/04/05 10:43 PM

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?
Posted By: SladeKraven

Re: Modes - 17/04/05 10:52 PM

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
Posted By: LODsqua

Re: Modes - 17/04/05 10:54 PM

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. ^^
Posted By: SladeKraven

Re: Modes - 17/04/05 11:06 PM

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
Posted By: LODsqua

Re: Modes - 17/04/05 11:16 PM

It works, thanks. smile
Posted By: SladeKraven

Re: Modes - 17/04/05 11:19 PM

You're welcome. smile
© 2019 mIRC Discussion Forums