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 

need-op bug in eggdrop v1.6.18 SOLVED

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


Joined: 01 Mar 2007
Posts: 7
Location: Perth, Western Australia

PostPosted: Thu Mar 01, 2007 1:08 am    Post subject: need-op bug in eggdrop v1.6.18 SOLVED Reply with quote

I have noticed a bug {I think :/} when .chanset #channel need-op

Basically, I have a small procedure in the eggdrop.conf to allow the bot to execute two commands in order to gain ops:

Code:
proc needoperz { channel } {
  putserv "PRIVMSG NickOP@austnet.org :IDENTIFY mypassword"
  putserv "PRIVMSG ChanOP :OP $channel $::botnick"
}

then I have this:

channel add #mychan {
     chanmode "+nt"
     need-op { needoperz "#mychan" }
   }

First: The need-op seems to be ignored, checking via .chaninfo (no need-op) althought the bot joins the channel, even after deleting the chan.file and restarting the bot.

Second: When I add:
.chanset #mychan need-op need-operz "#mychan"

   It shows up when .chaninfo #mychan and executes correctly, however it
dissapears again some 15 minutes later.

Examination of logs has not shed any light on this problem.

Anyone experiencing the same problem, and found a cure?

PS. .chanset #mychan need-op restart
   (to effect a bot restart to gain ops)  reflects the same problem.

Cheers,
            Johnny


Last edited by scarcorp on Fri Mar 02, 2007 5:03 am; edited 1 time in total
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Mar 01, 2007 1:32 am    Post subject: Reply with quote

Save your channel when you add it or change settings with .chanset.

### chansave Saves the channel settings to the file defined by the "chanfile" setting. This file is reloaded during rehash and restarting the bot.

chanset changes get wiped on rehash/reload/restart unless you chansave.

Once a channel is created, the channel add command won't change its settings, use the channel set command instead (.chanset from the console, channel set from a script.)
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Mar 01, 2007 7:43 am    Post subject: Reply with quote

Quote:
.chanset #channel need-op needoperz #channel

will work, as long as the command exists (it is loaded since it's written in the .conf file).
_________________
Follow me on GitHub

- Opposing

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


Joined: 01 Mar 2007
Posts: 7
Location: Perth, Western Australia

PostPosted: Thu Mar 01, 2007 2:13 pm    Post subject: Reply with quote

Thanks for your sugestions, however I did set it via .chanset and whether I save settings via .save doesn't make any difference, the settings are forgotten after about 15mins.
As a matter of interest, I have compiled another bot on another shell, and I get the same error.
Cheers.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Mar 01, 2007 2:24 pm    Post subject: Reply with quote

Are you running any kind of getops script or module, such as botnetop?
Some of these scripts automatically alter the need-* settings...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
scarcorp
Voice


Joined: 01 Mar 2007
Posts: 7
Location: Perth, Western Australia

PostPosted: Thu Mar 01, 2007 2:32 pm    Post subject: Reply with quote

No, it's str8 out the box, so to speak. I have used other versions of eggdrop and have never encounted this problem.
Cheers
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Mar 01, 2007 2:35 pm    Post subject: Reply with quote

Could you verify that there is no problems saving the new settings? (ie, cat:ing the channels-file just after .save:ing the new settings from partyline)
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
scarcorp
Voice


Joined: 01 Mar 2007
Posts: 7
Location: Perth, Western Australia

PostPosted: Thu Mar 01, 2007 2:39 pm    Post subject: Reply with quote

The settings are saved in the channel file Smile
====
Back to top
View user's profile Send private message
scarcorp
Voice


Joined: 01 Mar 2007
Posts: 7
Location: Perth, Western Australia

PostPosted: Thu Mar 01, 2007 3:27 pm    Post subject: Reply with quote

And forgotten after 15mins, and when settings are saved every hour, chanfile has no sign of need-op settings.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Mar 01, 2007 4:09 pm    Post subject: Reply with quote

Although you say it's "out of the box", it still smells like getops.tcl or a third-party script/module :/

Could you check that there's no timed scripts (.tcl timers/utimers) or time bindings (.bind time all) active that might be the cause for this behaviour?
You'll probably have to modify your config abit to enable the .tcl command, but that should be explained in the config-file.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
scarcorp
Voice


Joined: 01 Mar 2007
Posts: 7
Location: Perth, Western Australia

PostPosted: Thu Mar 01, 2007 9:24 pm    Post subject: Reply with quote

I assure you it is "out of the box", I am no newbie to eggdrop Smile

Besides the fact that I have complied new installations of this version on 3 different shells, and my own server, all consistently giving the same results.

Your last sugestion re. any timers has not turned up anything either.

I think I will return to the last version, this is deffinately a bug.

Cheers,
John
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Mar 01, 2007 11:02 pm    Post subject: Reply with quote

You are the only one experiencing it. Post your config file if you want (minus all the comments and junk.)
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Mar 02, 2007 12:48 am    Post subject: Reply with quote

scarcorp wrote:
I think I will return to the last version, this is deffinately a bug.

This particular "problem" of yours has never been reported to date; it appears you are the only one experiencing this.

Which OS is it compiled under?

Where did you d/load the source?

Double check your eggdrop.conf against this page: Setting up an Eggdrop
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
scarcorp
Voice


Joined: 01 Mar 2007
Posts: 7
Location: Perth, Western Australia

PostPosted: Fri Mar 02, 2007 5:00 am    Post subject: SOLVED Reply with quote

I originally obtained the source from a mate.

After downloading a fresh source from egghelp, and recompiling on all shells the problem is now solved Smile It works fine now even with smart.tcl etc...

Thanks for everyone's help.

Cheers,
John
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Mar 02, 2007 6:03 am    Post subject: Reply with quote

Forgive my cynicism, but, never trust src from other people, always get the original in case someone put backdoors into it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop 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