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 

Changing partyline flag +p
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Thu Mar 22, 2007 10:51 pm    Post subject: Reply with quote

yaaaaaaaaaaaaaa! I got it..

I changed:

Code:
#define USER_PARTY         0x00008000 /* p  user has party line access            */


To:

Code:
#define USER_PARTY         0x00002000 /* p  user has party line access            */



0x00002000 denotes +n users to chat only, and I recompiled the bot it worked amazingly Very Happy

yay!.. now I wish I could know how to set my own flags, I don't know how to convert those digits..

Thanks
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Thu Mar 22, 2007 11:12 pm    Post subject: Reply with quote

Ok 1 problem:

Users can't directly /ctcp botnick chat but through second bot they can use .relay however I've changed +p earlier, what could that be a problem, how to find relay souce.

Thanks
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Mar 23, 2007 10:00 am    Post subject: Reply with quote

Actually, your change effectively grants owner privileges to anyone given master or botnet master privileges...
Also might have some unexpected effects on channel-speciffic flags (as there's no channel-speciffic 'p'). Have you verified that the userfile is written and read properly?

As for the .relay-command, 'tis just a basic dcc binding... unbind it just like you'd unbind any other unwanted commands (check yer configfile for examples).

And still further, unbinding the .relay-command won't prevent ppl from starting up their telnet-client, or faking a dcc chat request to themselves.

And I still can't see why you go through all this trouble when it'd just be a matter of adding the p-flag to private-globals, but it's your bots and your mess...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Mar 23, 2007 7:19 pm    Post subject: Reply with quote

I don't understand what you mean with adding p-flag .. that's the reason I am trying to help myself out with modifying source, I just want to change +p to any other flag that was my question.

And if i unbind the relay command in the config file then 1 of my TCL wont work, I use Relay tcl for 2 networks.


Thanks
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


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

PostPosted: Fri Mar 23, 2007 7:39 pm    Post subject: Reply with quote

You have made what was a simple solution (KISS principle) into an unnecessary complicated mess.

It really is a very good idea to attempt a read at the documentation before trying any other "solution" to a "brainstorm".
_________________
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
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Mar 23, 2007 8:38 pm    Post subject: Reply with quote

I'm talking of the config-setting private-globals.. (just check my first posts)
It's a pretty well-documented setting, and had you even bothered to check it up in your config-file, you'd known what I was referring to.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Mar 23, 2007 9:24 pm    Post subject: Reply with quote

Thanks alot for replying me soo quickly I really appreciate that, let's come back to the point.

You're I guess referring me to :

Code:
# When sharing user lists, DON'T ACCEPT global flag changes from other bots?
# NOTE: The bot will still send changes made on the bot, it just won't accept
# any global flag changes from other bots. This overrides the private-globals
# setting (below).
#set private-global 0


If this is what you want me to use then it's completely helpless for me. Ok let me tell you in brief now how my bots work.

I have a channel with 2 bots.

1. BOT1 (Main)
2. BOT2 (Hub)
Sharing userfile as well

Both are connected, now BOT1 has a script coded which adds users with +fop flags ( i have mentioned those flags ), so that means both the bots will have the same userfile, so it's upto users on which they use /ctcp botnick chat. I wanted that BOT1 shouldnt allow +p to chat with it, whereas BOT2 should entertain users. With your help I successfully made that thing, now users can't chat with BOT1 but if they're logged in BOT2 they can use .relay and come to BOT1. All I now want to ask you guys is how can I set flags for .relay for user Smile

Thank You for being with me Smile
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Mar 23, 2007 10:31 pm    Post subject: Reply with quote

Nope, private-globals, with an s at the end. This one allows you to filter single flags, rather than all global flags...

As for the .relay-command, as stated in a previous post, it's just a basic dcc binding, once again, check your config-file for an example on how to alter/remove bindings (numerous examples including .set/.tcl dcc commands, msg greet command, etc).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Mar 23, 2007 10:57 pm    Post subject: Reply with quote

but if I bind relay command do you think my bots will be able to relay text?'

Thanks
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sun Mar 25, 2007 10:23 am    Post subject: Reply with quote

so nml can you tell me please?
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Mar 25, 2007 10:45 am    Post subject: Reply with quote

Relaying what text?
Using the .relay command just makes your bot behave like a telnet client for the user who invoked the command. Rebinding it restricts who may invoke the command, it will not affect the behaviour of the command itself.

Besides, if your modifications work as you intend them to, even if they can use the .relay-command, the second bot really should'nt let them log on. If it does, what's to prevent your "evil" users from just starting their own telnet-client and enter the address of the second bot? Or just simply send a fake dcc chat-request to themselves?

Edit: Also, bumping posts is generally considdered a bad practise.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Mon Mar 26, 2007 11:35 pm    Post subject: Reply with quote

iamdeath wrote:
I've also found something in 'flags.h'

Code:
#define USER_PARTY         0x00008000 /* p  user has party line access


But I am not sure how to chance those 0x00008000

Thanks
I am not positive, but I believe this line is refering to what is displayed when you type .whois nick. I wouldn't change that hexidecimal number at all Mr. Green
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Mar 27, 2007 9:18 am    Post subject: Reply with quote

@YooHoo: Actually, that's the bit-flag used to internally represent p-flag in some parts of the code. It is used whenever the code checks, sets and unsets p-flag (as I recall, it is not used when reading or writing the userfile however). Still I agree that editing this might not be such a good idea.

As for now, I am not going to put much further effort in this thread, as the original author seems to be looking for a "quick-fix" for doing it the very hard way (although this thread is posted under "Eggdrop Help", the modifications requested is not trivial, and an ample solution has been provided that does not require source modifications - hence I'd expect some efforts from the author rather than just bumping the same question over and over).
_________________
NML_375, idling at #eggdrop@IrcNET
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
Goto page Previous  1, 2
Page 2 of 2

 
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