I'm using eggdrop 1.6.17, with no TCL scripts loaded but my own that I am writing. The script itself is fairly barebone at this moment.
After studying getops.tcl that comes with eggdrop, I am writing my own...
The script works fine except for one problem, my bots op twice. The 2nd time is -definitely not- my script. How am I sure? I modified my script to `putquick "MODE $chan +o-b $bot *!test@*"` So, I know that it's my script opping another bot.
The second op is a plain op and happens always after the first op never before. Seems to be triggered by the same source, which is eggdrop's own need function I'm guessing.
I have that mode off, but while I checked my channel modes I noticed +protectops is on. And that's probably what's triggering it, since the way I am testing the getops between bots is by deopping/kicking them. Now I noticed that when I do this with a client that is recognized with owner flags on the bot, the bots do not that additional op for the bot that was deopped.
Now when I do this with a 2nd client that is added to the bots but has no flags, the bots will do the additional op ontop of the opping I added with my script. However this isn't true if "client 2" kicks the bot, only deops a bot.
Anyway, this is a useful feature of course, but I want to integrate it with my own proc i wrote for handling opping. Is there a way to remove the original function of +protectops? And then from within the script I'll add my own protectops procs that check for +protectops and then call my own proc that handles opping?
stilllearning wrote:Is there a way to remove the original function of +protectops? And then from within the script I'll add my own protectops procs that check for +protectops and then call my own proc that handles opping?
bind to raw MODE (or/and KICK), do what you need to do, return 1 to indicate eggdrop must skip further processing & action, otherwise 0
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use
I was talking about double-mode, which doesn't concern [pushmode] - in the sense that [pushmode] has its own higher-level buffering with separate processing, meant to pack more modes into single modeline
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use