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.

get user flags

Old posts that have not been replied to for several years.
H
HolyCow
Voice
Posts: 16
Joined: Mon Jun 14, 2004 9:39 am
Location: Norway
Contact:

get user flags

Post by HolyCow »

How do I get a list of a users flags?
some said getuser but I dont see how.
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

H
HolyCow
Voice
Posts: 16
Joined: Mon Jun 14, 2004 9:39 am
Location: Norway
Contact:

Post by HolyCow »

thats some nice random paste'ing your doing there ]Kami[..
*pats on the head*
anyone else know how to get the users' flaaags?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

random pasting? With match * you see all users and their flags...
H
HolyCow
Voice
Posts: 16
Joined: Mon Jun 14, 2004 9:39 am
Location: Norway
Contact:

Post by HolyCow »

whaaat?
this is the tcl script forum.
you dont think perhaps I ment with tcl then?
I even mentioned a tcl command..
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

the command you're looking for is chattr, justdo chattr handle, without any other args, like:
.tcl chattr gb
<bot> Tcl: fjlmnoptx
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Have you ever read the manual? ;)
Check doc/tcl-commands.doc for more tcl commands.
Que?
H
HolyCow
Voice
Posts: 16
Joined: Mon Jun 14, 2004 9:39 am
Location: Norway
Contact:

Post by HolyCow »

Yes, I've read it shithead.. how else would I know how getuser works?
And I'm getting pretty [censored] tired of not being able to ask a simple question, without lamers like yourself telling me to read the manual!!
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

chattr <handle> [changes [channel]]
Description: changes the attributes for a user record, if you include any.
Changes are of the form '+f', '-o', '+dk', '-o+d', etc. If changes are
specified in the format of |<changes> <channel>, the channel-specific
flags for that channel are altered. You can now use the +o|-o #channel
format here too.
Returns: new flags for the user (if you made no changes, the current
flags are returned). If a channel was specified, the global AND the
channel-specific flags for that channel are returned in the format of
globalflags|channelflags. "*" is returned if the specified user does
not exist.

Module: core

botattr <handle> [changes [channel]]
Description: similar to chattr except this modifies bot flags rather
than normal user attributes.
Returns: new flags for the bot (if you made no changes, the current
flags are returned). If a channel was specified, the global AND the
channel-specific flags for that channel are returned in the format of
globalflags|channelflags. "*" is returned if the specified bot does
not exist.

Module: core
List of all available flags you can find in doc/USERS

Just read those manual once again.
Que?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

and for an example on how its used, see my previous post :o
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Post by bobjuh »

HolyCow wrote:Yes, I've read it shithead.. how else would I know how getuser works?
And I'm getting pretty **** tired of not being able to ask a simple question, without lamers like yourself telling me to read the manual!!
You really think calling people names will make them help you ? :roll:
If you want help please try to me more polite
H
HolyCow
Voice
Posts: 16
Joined: Mon Jun 14, 2004 9:39 am
Location: Norway
Contact:

Post by HolyCow »

Well, fist of all. KrzychuG didnt help me, he just insinuated that I was a kiddie that didnt bother to check the manual.

I didnt mean to offend anyone else.
In fact: thanks for the help gb.
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Because it seems that you haven't read those file. I pasted few lines from doc/tcl-commands.doc which contains what you need.
Que?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Some people are so lazzy so they don't even read 'how to setup conf' manual...I'm geting sick of such people...They ask questions like 'how do i join eggdrop to channel' etc...I think all docs and help module should be removed from eggdrop in next version, it's just waste of space... :roll:

RTFM
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

perhaps try

userlist [flags]
Returns: a list of users on the bot. You can use the flag matching
system here ([global]{&/|}[chan]{&/|}[bot]). '&' specifies "and";
'|' specifies "or".
Module: core

print that list to a file, and extract the line with your user in it

(this is a VERY long way round of doing it btw)
Locked