egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

strictop

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Wed Jun 13, 2007 5:48 am    Post subject: strictop Reply with quote

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. Wink 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
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jun 13, 2007 4:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Thu Jun 14, 2007 6:57 am    Post subject: Reply with quote

can yu edit the code so that i can turn it off and on via chanset
sumthin like .chanset # +xop

and thanks Smile
_________________
proxyz..proxyz...i see everywher... O_o
Back to top
View user's profile Send private message Visit poster's website
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Thu Jun 14, 2007 9:09 am    Post subject: Reply with quote

just add:

Code:
if {![channel get $chan xop]} { return }


to the line above

Code:
if {$nick != "X"} {

_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jun 14, 2007 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Thu Jun 14, 2007 3:14 pm    Post subject: Reply with quote

arh yes Sad i guess i need more sleep :- nice catch there Sir_Fz
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber