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 

bot double ops, don't know why...

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
stilllearning
Voice


Joined: 29 Jan 2006
Posts: 8

PostPosted: Sun Jan 29, 2006 4:16 pm    Post subject: bot double ops, don't know why... Reply with quote

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.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 29, 2006 5:50 pm    Post subject: Reply with quote

I suspect that the channel is set to +autoop and the users being oped have the +o flag?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
stilllearning
Voice


Joined: 29 Jan 2006
Posts: 8

PostPosted: Sun Jan 29, 2006 6:57 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Jan 29, 2006 8:56 pm    Post subject: Reply with quote

you might be able to get rid of it by using pushmode and "set double-mode 0" in the config file.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Jan 30, 2006 12:30 am    Post subject: Reply with quote

De Kus wrote:
you might be able to get rid of it by using pushmode and "set double-mode 0" in the config file.


nope, those aren't identical messages in the queue
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Jan 30, 2006 12:38 am    Post subject: Reply with quote

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 [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Feb 02, 2006 4:07 pm    Post subject: Reply with quote

demond wrote:
De Kus wrote:
you might be able to get rid of it by using pushmode and "set double-mode 0" in the config file.


nope, those aren't identical messages in the queue

whatever, pushmode won't put double modes and internal modes should use the mode queue as well.

Quote:
[21:03:43] tcl: evaluate (.tcl): pushmode "#zeitenwandel" +v "StarZ|De_Kus"; pushmode "#zeitenwandel" +v "StarZ|De_Kus"
Tcl:
[21:03:44] [s->] MODE #zeitenwandel +v StarZ|De_Kus

_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Feb 03, 2006 12:22 am    Post subject: Reply with quote

De Kus wrote:
demond wrote:
De Kus wrote:
you might be able to get rid of it by using pushmode and "set double-mode 0" in the config file.


nope, those aren't identical messages in the queue

whatever, pushmode won't put double modes and internal modes should use the mode queue as well.

Quote:
[21:03:43] tcl: evaluate (.tcl): pushmode "#zeitenwandel" +v "StarZ|De_Kus"; pushmode "#zeitenwandel" +v "StarZ|De_Kus"
Tcl:
[21:03:44] [s->] MODE #zeitenwandel +v StarZ|De_Kus


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 [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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