This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

strictop

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

strictop

Post by silverboy »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

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.
Last edited by Sir_Fz on Thu Jun 14, 2007 1:27 pm, edited 1 time in total.
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

Post by silverboy »

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
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

just add:

Code: Select all

if {![channel get $chan xop]} { return }
to the line above

Code: Select all

if {$nick != "X"} {
r0t3n @ #r0t3n @ Quakenet
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Tosser^^ wrote:just add:

Code: Select all

if {![channel get $chan xop]} { return }
to the line above

Code: Select all

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.
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

arh yes :( i guess i need more sleep :- nice catch there Sir_Fz
r0t3n @ #r0t3n @ Quakenet
Post Reply