m_ison: Do not report unregistered connections

Prior to this, m_ison would report a nick as being online if a client
that was not yet registered had chosen this nickname on the same server.
This change adds a check to make sure the struct Client has a
struct User associated with it, i.e. registration has occurred.
This commit is contained in:
xnrand 2019-02-17 10:47:19 +01:00
parent 01ef07c1c8
commit c345d844e6
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ m_ison(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
char *cs = LOCAL_COPY(parv[i]);
for (nick = rb_strtok_r(cs, " ", &p); nick; nick = rb_strtok_r(NULL, " ", &p))
{
target_p = find_named_client(nick);
target_p = find_named_person(nick);
if(target_p != NULL)
{