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.

De-Op Script

Old posts that have not been replied to for several years.
Locked
B
BassTeQ

Post by BassTeQ »

Hello I was wondering if anyone could help me with a solution to my problem.
Re: http://forum.egghelp.org/viewtopic.php? ... &forum=1&4

What Im looking for is a TCL script that will undo any +o channel changes by users that dont have a certain flag.

So if user A gives ops to user B, and user A doesn't have the flag X in his userfile then then ops will be removed from user B

Any help is greatly appreciated.
Thank You.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

On 2002-03-17 17:20, BassTeQ wrote:
[snip]
What Im looking for is a TCL script that will undo any +o channel changes by users that dont have a certain flag.

So if user A gives ops to user B, and user A doesn't have the flag X in his userfile then then ops will be removed from user B
BassTeQ, no doubt there are scripts out there which do that. You can see my experiments at:
http://www.geocities.com/eggheadtcl/strictop.tcl.txt
and a similar script for deop revenge:
http://www.geocities.com/eggheadtcl/prot-deop.tcl.txt

I haven't used these scripts for a long time and I only brassed them up for this occasion.
Maybe this will get you started. Note that the scripts use [wasop], which was introduced somewhere around eggdrop version 1.4. Lower eggdrop versions can't use these scripts.

Btw, if you know a good place like Geocities where my scripts can be hosted for free and with FTP access, suggestions are appreciated.


<font size=-1>[ This Message was edited by: egghead on 2002-03-18 06:18 ]</font>
B
BassTeQ

Post by BassTeQ »

Hi egghead, thanks for your reply.

I have a proposition or you. Id be happy to host your scripts and site on my domian if you could help me customise these scripts a little further. Do you have ICQ / Email?
We can dicuss it further there.

Cheers
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

BassTeQ, thanks for the offer, but I'm looking for something like GeoCities. They are going to switch off FTP access, which makes maintaining a site cumbersome.

Modifying the scripts shouldn't be too difficult, you have the source now :smile:

If in a week of hard trying you couldn't modify it to your needs, let it know here :grin:

<font size=-1>[ This Message was edited by: egghead on 2002-03-18 16:58 ]</font>
B
BassTeQ

Post by BassTeQ »

Ok thanks, Ill have aplay with the scripts and see how I go.
The only question I have is in the scriptops.tcl it says

#Make sure the bot recognises such service/guarding bot!

What flag should I set for my service so that my bot recognises the servce/guarding bot accordingly, the same as if it was a user that was allowed to set ops?

Cheers
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

[snip]
#Make sure the bot recognises such service/guarding bot!

What flag should I set for my service so that my bot recognises the servce/guarding bot accordingly, the same as if it was a user that was allowed to set ops?
If you don't change the settings in the script, a global/channel +o will do.

Enjoy!

<font size=-1>[ This Message was edited by: egghead on 2002-03-18 18:00 ]</font>
B
BassTeQ

Post by BassTeQ »

Fantastic thanks, Ill have a look at it tonight!
B
BassTeQ

Post by BassTeQ »

Hi egghead, I tested out the script on version 1.6.9
I took away the 'o' flag from a user in the bots user list and got another OP to op that user, but the bot didn't remove the OP's that were given.

Any ideas?
Could this version be incompatible with 1.6.9?

Thanks!
B
BassTeQ

Post by BassTeQ »

Actually looking at the code now, the section
set strictopglobflag "n m o"
Does that mean that the user must have ALL these flags, or any ONE of those flags?

Cheers
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

On 2002-03-21 18:20, BassTeQ wrote:
Hi egghead, I tested out the script on version 1.6.9
I took away the 'o' flag from a user in the bots user list and got another OP to op that user, but the bot didn't remove the OP's that were given.

Any ideas?
Could this version be incompatible with 1.6.9?

Thanks!
Hi BassTeQ. First, as described in the text of the script: the channel setting must include +protectops and -bitch. Do you have this setting for the channel?

Second, the scripts makes a distinction between a person who GIVEs ops and a person who GETs the ops.

If the person GIVING the ops has the required global or channelflags (n/m/o), the opping is allowed.
In your case, what flags did the user have that gave the ops?

If the person GETTING the ops has the required global or channel flags, the opping is also allowed. In your case, what flags did the user have that received the ops? none?

Your answers to these questions will help to track down a bug, if there is one. :grin:

Or do you want the strictopping to tighter to check only the flags of the person getting opped?
B
BassTeQ

Post by BassTeQ »

Egghead, thanks for your prompt reply.
I'll Confirm my channel is setup +protectops and -bitch and check my userflags again.

Ill let you know how I go, cheers mate.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

On 2002-03-21 18:23, BassTeQ wrote:
Actually looking at the code now, the section
set strictopglobflag "n m o"
Does that mean that the user must have ALL these flags, or any ONE of those flags?

Cheers
Any ONE of those flags.

If you make it:
set strictopglobflag "nmo"
the user needs ALL these flags.
B
BassTeQ

Post by BassTeQ »

Seems to be working nicely thanks!

One thing I would like to add, how could I make the script /msg a user that gives OP's

a) to a person that isn't allowed to HAVE ops
b) by a current OP that isnt allowed to GIVE ops

Cheers
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

On 2002-03-25 00:49, BassTeQ wrote:
Seems to be working nicely thanks!

One thing I would like to add, how could I make the script /msg a user that gives OP's

a) to a person that isn't allowed to HAVE ops
b) by a current OP that isnt allowed to GIVE ops

Cheers
If you want to send a message to the nick spreading illegally the op, locate the following line at the bottom of the script:

Code: Select all

putserv "MODE $chan -oo $nick $deopnick"
and add below it:

Code: Select all

puthelp "PRIVMSG $nick :You are not allowed to hand out ops on $chan to a stranger like $deopnick"
B
BassTeQ

Post by BassTeQ »

Works perfectly now, thanks for all your help!
Much Appreciated!
Locked