From c345d844e6a9b68d328bb6361da46d252db0fa9c Mon Sep 17 00:00:00 2001 From: xnrand Date: Sun, 17 Feb 2019 10:47:19 +0100 Subject: [PATCH] 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. --- modules/m_ison.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_ison.c b/modules/m_ison.c index 152d7efa..9f4dd577 100644 --- a/modules/m_ison.c +++ b/modules/m_ison.c @@ -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) {