| View previous topic :: View next topic |
| Author |
Message |
silverboy Halfop
Joined: 11 Feb 2006 Posts: 55
|
Posted: Wed Jun 13, 2007 5:48 am Post subject: strictop |
|
|
Only X should be able to OP users,
If a temp OP ops a user, both of them should get deoped. and The eggdrop should do /msg x ban #chan $victim 2400 1
$victim is the person who OP's the user.
I need this cause i have users with 24 Access LU in my channel, they can get AUTOOP via X but i dont want them to give OP to others, when X adds a LEVEL 1 ban, the people with access 24 cannot get AUTOOP.
And if i set STRICTOP only users with 100 LEVEL ACCESS CAN Get Op. But i dont want that, i want level 1 users also to get AUTOOP. but shudn't be able to Op anyone else as you need atleast 75 X access to op a user via X. _________________ proxyz..proxyz...i see everywher... O_o |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Jun 13, 2007 4:06 pm Post subject: |
|
|
| Code: | bind mode - "* +o" ban:notX
setudef flag xop
proc ban:notX {nick uhost hand chan mc targ} {
if {$nick != "X" && [channel get $chan xop]} {
if {[isop $nick $chan]} {
pushmode $chan -o $nick
putquick "privmsg X :ban $chan $nick 2400 1"
}
if {[isop $targ $chan]} {
pushmode $chan -o $targ
}
}
} |
I've added the [isop] checks just incase a user does multiple oping of different or same nick in one line.
Edit: Added channel setting to enable/disable it. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts
Last edited by Sir_Fz on Thu Jun 14, 2007 1:27 pm; edited 1 time in total |
|
| Back to top |
|
 |
silverboy Halfop
Joined: 11 Feb 2006 Posts: 55
|
Posted: Thu Jun 14, 2007 6:57 am Post subject: |
|
|
can yu edit the code so that i can turn it off and on via chanset
sumthin like .chanset # +xop
and thanks  _________________ proxyz..proxyz...i see everywher... O_o |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Thu Jun 14, 2007 9:09 am Post subject: |
|
|
just add:
| Code: | | if {![channel get $chan xop]} { return } |
to the line above
| Code: | | if {$nick != "X"} { |
_________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Jun 14, 2007 1:29 pm Post subject: |
|
|
| Tosser^^ wrote: | just add:
| Code: | | if {![channel get $chan xop]} { return } |
to the line above
| Code: | | if {$nick != "X"} { |
|
You need to first create the channel-setting xop.
I've edited the code above, now you need to set the channel +xop for the code to work on it. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Thu Jun 14, 2007 3:14 pm Post subject: |
|
|
arh yes i guess i need more sleep :- nice catch there Sir_Fz _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
|