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.

Share Module (SHARING)

General support and discussion of Eggdrop bots.
Post Reply
e
emunity
Voice
Posts: 2
Joined: Tue Jun 02, 2009 3:53 am

Share Module (SHARING)

Post by emunity »

I am having a bit of a problem with the user files hosts on the leaf user files.

I have tested this over and over again and I do not see the changes such as adding a host to a leaf, overridden by the HUB which according to my settings it should work right? The hub should replace whatever is set on the leaf user file back to whatever is set on the Hub's user file? The Host I added to the leaf user file does not exist on the the Hub's user file.

When I DCC to the Hub and leaf bot I send the .reload command in DCC from the hub bot and do not see any changes made to the leaf user file?

The +shared is set for the channel in question. As a matter of fact any new channel I add will always automatically be set to +shared so that is not the issue. See my botattr settings below which are also correct so that is not the problem either.

Leaf Conf

loadmodule share
set private-global 0
set private-globals ""
set private-user 0
set override-bots 1
set allow-resync 0
set resync-time 900


HUB Conf

loadmodule share
set private-global 1
set private-globals ""
set private-user 1
set override-bots 0
set allow-resync 0
set resync-time 900



The botattr of each leaf on the HUB's user file is +gs

The botattr of the HUB on each Leaf's user file is +ghp

The botattr of the alternate bot's on each leaf's user file is +agp

The botattr of each leaf on the alternate user's file is +gs

I purposely set set private-globals "" to null because I do not want any flags ignored. Is this set correctly for both HUB and LEAF conf files?


I have set owner to myself on all the configs and I have set must-be-owner to 2. If that actually has anything to do with sharring user file attributes?


Last question can you have more than one alternate bot and what botattr settings should I set if I have 2 alternate bots on both the alternate, hub and leaf user files.

Should the share module settings in an alternate conf file basically look like the way I have it set for a leaf? I would think it should since if I change it to look like the Hub conf the alternate bot will not make changes accordingly to the Hub bot.

This all gets kinda confusing when you add an alternate bot in the picture.


Thanks for reading this post and attempting to answer it as best as possible.

:wink:
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

First off, the private-global and private-globals setting only affect global flags, not hostmasks, addresses or channel-specific flags. private-global takes priority to private-globals.

To my best knowledge, the private-user setting only affect changes done once the bots are linked, not when the complete userfile is transferred, and simply mean your hub will reject/ignore any changes from any single leaf. It will not bounce the change back to the leaf. Unlinking and relinking your bots would trigger a new userfile transfer, which would restore any user records on your leafs to match hub-bot's records.

Your flags (and the setting of must-be-owner) has no effect on sharing.

Yes, you can have more than one alt-hubs. Each leaf should list each alt-hub as +agp (simply replace the h with a). Each alt-hub should list each leaf as +gs. Should your alts receive user changes? This gets a little messy, as you can't tell your alts to only accept changes from your hub or other alts. Setting private-user to 0 means your alts will not get any updates done in your hubs until they relink with the hub, while setting it to 1 means it'll accept any change from any linked (and sharing) bot.
Usually, one would only accept userfile sharing with trusted bots, thus avoiding the need for private-user being set to 1.
NML_375
e
emunity
Voice
Posts: 2
Joined: Tue Jun 02, 2009 3:53 am

Post by emunity »

I should have figured they were global only changes.


I tried the unlink then let it naturally re-link and the +host on the leaf bot user file is still there?


Did I set override bots correctly for each conf? There must be one more thing I need to set or unset in the conf to make this work correctly?


I know the hub is not accepting changes from the leaf and I know the leafs are accepting changes from the Hub as tested and observed.


If I try to -host from the hub I get a "Failed" which is expected because the hub's user file does not have the +host I manually added to the leaf's user file.

I failed to mention that the leaf bot has its own user record of itself and that is where I made the change. Not from another leaf bot but on the leaf bot I added a host to the leaf bot that is in its own user file.

Could that be why?

Its just this one thing that puzzles me. Everything else seems to be working fine.

Any Clues?

Thanks


EDITED:

OK here is what is happening. If I .reload the userlist transfers complete.

Not sure if this will completely switch over the user file or not? I checked the and the added host is still on the leaf userfile.

I also did unlink and let it link up and got these messages:

Downloading user file from hub but failed connection; aborted userfile transfer.

Tried different leaf bots with same result. I can .reload no problem but when unlinked and then they relink I get the userfile aborted.

And from what you said its at this point the user file is completed switched over or will .reload do the same thing?

This is very odd.



EDITED:

Next day.

Those failed connections and aborted usefiles where because of some issue on the Hub or leaf shell not sure but that problem has disappeared.

Ok I did this test. I added a user and everything is working to the way it is suppose to with a user.

But if I make a change to the bot host within the leaf user file, that change remains. Unlinking or .reloading the hub from the leaf does not switch over the extra host added to the bot on the leaf user file.

So my conclusion is that for users yes the file is completely replaced but for a bot the extra hosts remain on the one leaf and the only way to remove it is to add that host on the hub then remove it from the hub.

Switching over the user file is not switching over the bots added host.

Is this suppose to work this way for the bots within the user file?

Is there another setting I need to make so that it works as a normal user is working?

Hope someone has an answer to this?
Post Reply