mIRC Home    About    Download    Register    News    Help

Print Thread
#228831 11/01/11 11:08 PM
Joined: Jan 2011
Posts: 3
N
Nozomi Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jan 2011
Posts: 3
Hello, i need some help.

i want a simple script that when someone enters in the channel i can change his flag for example
unknown join the chanel
chanserv set +ao unknown
Nozomi set -a unknown

and the same script but instead me, the bot set -a to the user
the msg to the bot server is /cs deprotect #channel nick (i mean send a normal msg)

Thanks in Advance x)

Last edited by Nozomi; 11/01/11 11:09 PM.
Nozomi #228834 11/01/11 11:34 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559

Hm, instead of quarrelling with the services, why don't you (or the channel's founder) adjust it's SOP list and/or access levels in the first place? smile
Originally Posted By: http://www.anope.org/docgen/1.8/en_us/ChanServ.html
PROTECT/DEPROTECT
[...] By default, limited to the founder, or to SOPs or those with
level 10 and above
[...].


Nozomi #228835 11/01/11 11:37 PM
Joined: Jan 2011
Posts: 3
N
Nozomi Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jan 2011
Posts: 3
well the problem is i want give immunity to a person that is +ao and i want him just with +o thats why i asked

Nozomi #228837 12/01/11 12:01 AM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
But if you set -a (remove the PROTECT), the user is no longer protected... maybe PEACE is what you want?

Horstl #228839 12/01/11 12:47 AM
Joined: Jan 2011
Posts: 3
N
Nozomi Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jan 2011
Posts: 3
it yes by access lol...anyway i just want a script that can do that

Nozomi #228864 12/01/11 10:51 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Two suggestions (the latter being more restrictive) - either should work for your request
Code:
; if ChanServ ops "unknown" on #yourchan and "unknown" also gets, or already has PROTECT: send DEPROTECT command
on *:op:#yourchan: {
  if ($opnick == unknown) && ($nick == chanserv) && ($nick($chan,$opnick,&)) {
    .msg chanserv deprotect $chan $opnick
  }
}
Code:
; if on #yourchan ChanServ literally sets either "+oa unknown unknown" or "+ao unknown unknown": send DEPROTECT command
on *:rawmode:#yourchan: {
  if ($istok(+ao.+oa,$1,46)) && ($2-3 == unknown unknown) && ($nick == chanserv) {
    .msg chanserv deprotect $chan $2
  }
}

I didn't cover the case of deprotecting unknown if any protect on unknown is set by chanserv, as it would require more parsing in the "on rawmode" event (think of a fancy " +mvvoa-Rihb nick1 nick2 nick3 unknown nick2 a!b@* ") and may not be what you're after.


Link Copied to Clipboard