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.

how can I make my bot to op itself when he's deop'ed ?

Old posts that have not been replied to for several years.
Locked
a
aabos

how can I make my bot to op itself when he's deop'ed ?

Post by aabos »

In quakenet, there is a command to get ops (even if you are deop'ed in the channel... no need to rejoin or so) which is:
/msg L invite op $chan

what do I need to write in my new tcl file to make the bot check if its deop'ed and if it is, then write the above line and gain ops... ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You need to change the value of "need-op" using the .chanset command for that channel.

Set it to

Code: Select all

putserv "PRIVMSG L :invite op #chan"
There is no current machanism where $chan is automaticaly sustituted.
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

You could bind a proc on all deops and check it against the bot's own nick, and if it matches have it privmsg the bot/service "L". If you do not know much about tcl, I suggest you read (at least) the file tcl-commands.doc that can be found in your eggdrop's doc/ directory. This way it can tell L what channel it needs the op for, without having to set the need-op for each one. This might actually be faster in the time it takes to reop, but could have serious problems with large deop floods.
Locked