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.

op and deop via services

Old posts that have not been replied to for several years.
Locked
s
stammer
Voice
Posts: 31
Joined: Mon Mar 10, 2003 9:39 am
Location: Bulgaria

op and deop via services

Post by stammer »

Network where my bot is running is 'ircd-hybrid-7'. Problem is that: bot is fighting with services(ChanServ). So is it possible to make bot to give and take op,halfop,voice via ChanServ to prevent bot fighting with it? For example when it punishes bad users or user has '+d' flag to get users op via chanserv.

now bot uses 'mode +o, +v +h,'

and with ChanServ commnad is

/msg cs op #chan nick
/msg cs voice #chan nick
/msg cs halfop #chan nick

thanks
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This requires 1 of 2 methods in Tcl scripts.

1: Change all your loaded scripts to use this method.

2: Change putserv, puthelp and putquick, and also create a pushmode wrapper, to convert all required mode requests to the correct format.

As for eggdrops internal functions, there are again 2 methods.

1: Create and use script based alternatives to protection and mode setting commands.

2: Edit the source code, so that all mode requests are sent via chanserv.

Either way, ti's a pretty hard task for both.
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

perhaps there is another way. in what way is he "fighting" with chanserv?
s
stammer
Voice
Posts: 31
Joined: Mon Mar 10, 2003 9:39 am
Location: Bulgaria

Post by stammer »

ChanServ has option SecureOPs. With that option turned on only ops in CS list get opped. So if bof ops someone who is not identified in NickServ ChanServ deop-s it and bot ops it again and things get messy. Same thing occurs when bot try to deop someone who is opped by CS - when bot deops it CS ops it again and..... :(
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

What are the channel settings bitch, protectfriends, protectops set to?

What is the bouncemodes (maybe a - in it) set to in the config file?

Having you tried adding the channel services bot to the userfile, agiving it a random password and the +f flag?
s
stammer
Voice
Posts: 31
Joined: Mon Mar 10, 2003 9:39 am
Location: Bulgaria

Post by stammer »

I added Services with global 'F' and local channel flag 'm' to prevent fighting but that is not the way for me.

I think of removing '+revenge' '+revenge bot' '+protect ops and friends' and take support of this functions by TCL

what is bouncemodes setting?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As noted, the setting name may have a - (hyphen) in it.

The flag in question is not +F, it is +f.

Case is important, as it allows for 52 flags, prviding better customisation.
s
stammer
Voice
Posts: 31
Joined: Mon Mar 10, 2003 9:39 am
Location: Bulgaria

Post by stammer »

global flags is in upper case in .channel command and thats why i write F and yes it's my mistake it's '-revenge'...... :)

can you explain me diference between F and f if i'm not right

i'm new in eggdrops
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The quickest way, is to direct you to a explanation of the existing flags.

See ".help whois" for a list of global, and channel flags, plus these for bots.

Any uppercase userflaf, is a custom one.

They are there, so scripts can create there own systems based on flags.
s
stammer
Voice
Posts: 31
Joined: Mon Mar 10, 2003 9:39 am
Location: Bulgaria

Post by stammer »

ok i get it :) thanks

so to my question - is it right to: disable 'revenge' 'revengebot' 'bitch' 'protect friends' 'protectops' and do this functions by tcl script
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The issue is surounding people using the bot to OP.

IE, leave your current settings as they are.

Add the services bot as a user, as noted above.

Disable the MSG op command, and create your own personalised version, that only operates on people with +o AND a new customer flag.

The idea being that you set users on the SecurOPS list, with this flag.
Locked