When a user seems offline, in fact he/she may be online but with Invisible status (avoiding you?), but Yahoo! Messenger will show him/her as offline (the gray face icon).
Here is a site which would tell you the actual status of the concerned user.
INVISIBLE