Subj : system.matchuser() not finding user by real name
To   : Nightfox
From : Digital Man
Date : Thu Aug 15 2019 08:05 pm

 Re: system.matchuser() not finding user by real name
 By: Nightfox to Digital Man on Thu Aug 15 2019 07:41 pm

>   Re: system.matchuser() not finding user by real name
>   By: Nightfox to Digital Man on Thu Aug 15 2019 07:08 pm
>
>  Ni> I'm running a Synchronet Windows build from August 1st. With my reader,
>  Ni> I forwarded a message in a sub-board to myself on my BBS, and it used
>  Ni> my real name for the 'from' header field. With my reader, I try to
>  Ni> reply to it, and my reader calls system.matchuser() to get the user
>  Ni> number to reply to the appropriate person (in this case, I'm replying
>  Ni> to myself, doing some testing). Apparently, system.matchuser() is
>  Ni> unable to find the user record with my real name - system.matchuser()
>  Ni> is returning 0 with my real name. Is that expected?
>
> Now that I think about it, I suppose that behavior might be expected.  It's
> possible there might be multiple users who happen to have the same real
> name. I guess I just hadn't noticed (or hadn't remembered) that behavior
> before.

Yeah, that's intentional: matchuser() only matches the user's name/alias, not user's real names. If you want to search for real names or other field values in the user base, you can use system.matchuserdata().

                                           digital man

Synchronet "Real Fact" #15:
SBBSecho was introduced (replacing SBBSFIDO) for Synchronet v2 in 1994.
Norco, CA WX: 80.1�F, 42.0% humidity, 4 mph E wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net