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.

need help with matchattr

Old posts that have not been replied to for several years.
Locked
D
Drewbu

Post by Drewbu »

hi
I read manual about matchattr $nick flags $chan
but it don't says how can i use it ... i mean what it will return and how i can use it in if/else thing ....
please help
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

returns 0 for false, and 1 for true. (as it tells you in very plain text in the manual)
matchattr <handle> <flags> [channel]
returns: "1" if the specified user has the matching flags.
ie if {[matchattr $nick o]} {do something for a global op}
if {![matchattr $nick v|v $chan]} {do something for ppl who dont have a +v for that chan or global +v}

<font size=-1>[ This Message was edited by: Petersen on 2002-04-17 20:52 ]</font>
D
Drewbu

Post by Drewbu »

Thank you but i read the on-line manual it din't saied that!
thx
:smile:
Locked