| View previous topic :: View next topic |
| Author |
Message |
BoaR Halfop
Joined: 20 Jul 2007 Posts: 48
|
Posted: Fri Aug 03, 2007 8:52 pm Post subject: mininum t flag ? |
|
|
| 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 |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Fri Aug 03, 2007 9:16 pm Post subject: |
|
|
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. _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
BoaR Halfop
Joined: 20 Jul 2007 Posts: 48
|
Posted: Fri Aug 03, 2007 10:18 pm Post subject: |
|
|
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:
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 |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Fri Aug 03, 2007 10:56 pm Post subject: |
|
|
i would have thought this would be more difficult to solve than it is. Simply change this: to this: almost seems to simple. Don't forget to rehash the bot. Cheers  _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
BoaR Halfop
Joined: 20 Jul 2007 Posts: 48
|
Posted: Sat Aug 04, 2007 9:03 am Post subject: |
|
|
| 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 |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Sat Aug 04, 2007 9:53 am Post subject: |
|
|
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 _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
BoaR Halfop
Joined: 20 Jul 2007 Posts: 48
|
Posted: Sat Aug 04, 2007 10:36 am Post subject: |
|
|
| 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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Aug 04, 2007 9:36 pm Post subject: |
|
|
| 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 |
|
 |
|