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 

mininum t flag ?

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


Joined: 20 Jul 2007
Posts: 48

PostPosted: Fri Aug 03, 2007 8:52 pm    Post subject: mininum t flag ? Reply with quote

minimun required flag i want to use for users to use commands from a script inside the partyline is the +p flag... the bot requires +t flag, the script has the option to set user flags. It doesnt work when i enter "p" or "-|p" or "p|-" ...either way when i add +t to the user all the script commands work.. any ideas how i can set the commands for the +p flag only? i only want user with access to the partyline to use the commands from that script only and nothing more..
Back to top
View user's profile Send private message
YooHoo
Owner


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

PostPosted: Fri Aug 03, 2007 9:16 pm    Post subject: Reply with quote

when you need help modifying a script...any script... you need to include either the relevant code, or even better, the entire script in your post. To answer your question correctly is damn near impossible without seeing the code itself.

If, as you say, the commands are bound to a user-defined flag such as +t, there would have to be a line in said script that sets this as so, most likely with setudef. You cannot simply find this, alter the +t to a +p, and be done with it, as the +p flag is already defined in the eggdrop source. You could bind the commands to the +p flag with a few modifications, but to do so we would have to see the code so as to not make mistakes. I suggest posting the entire script here so we can see and understand what to do.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Fri Aug 03, 2007 10:18 pm    Post subject: Reply with quote

with do respect i cannot post the entire script, it was coded as a paid script like a month or so ago, the script works but now i want only users with +p flag to be able to use the commands.

i can post the part where the script sets the flag tho:

Code:
set flags "t|n"


procs have this to check for the flag:

Code:
proc flags {} {
  global flags
  return $flags
}


and this looks for users with those flags
Code:
if {[matchattr $handle [flags]] == 1} {


i hope that helps, but if it doesnt i think i will have to find a way for this..

maybe you can post a simple bind and proc that do let users with only +p flag do certain things in the partyline.. like to read a file with command !info inside the partyline.

thanks
Back to top
View user's profile Send private message
YooHoo
Owner


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

PostPosted: Fri Aug 03, 2007 10:56 pm    Post subject: Reply with quote

i would have thought this would be more difficult to solve than it is. Simply change this:
Code:
set flags "t|n"
to this:
Code:
set flags "p"
almost seems to simple. Don't forget to rehash the bot. Cheers Mr. Green
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Sat Aug 04, 2007 9:03 am    Post subject: Reply with quote

It doesnt work when i enter "p" or "-|p" or "p|-" ,, i add +t to the user account all the script commands work even with these flags "p" or "-|p" or "p|-"..but when i remove +t to the user and leave +p flag only it doesnt work,,
Back to top
View user's profile Send private message
YooHoo
Owner


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

PostPosted: Sat Aug 04, 2007 9:53 am    Post subject: Reply with quote

then you will have to show more of the script. you can't expect us to guess, that would be a waste of time and energy
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Sat Aug 04, 2007 10:36 am    Post subject: Reply with quote

is there a particular reason why the bot requires users to have +t flag though? botnet masters users do some maintainance on the bot so maybe what the procs are doing is some maintainance ? the procs mainly only write/read a file nothing more.
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sat Aug 04, 2007 9:36 pm    Post subject: Reply with quote

BoaR wrote:
is there a particular reason why the bot requires users to have +t flag though? botnet masters users do some maintainance on the bot so maybe what the procs are doing is some maintainance ? the procs mainly only write/read a file nothing more.

With eggdrop there is some amount of reading required. I'd suggest you read the (comprehensive) documentation in ./eggdrop1.6.18/doc; it is also in HTML format.
_________________
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
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