]> jfr.im git - irc/freenode/solanum.git/commitdiff
m_ison: Do not report unregistered connections
authorxnrand <redacted>
Sun, 17 Feb 2019 09:47:19 +0000 (10:47 +0100)
committerxnrand <redacted>
Fri, 26 Jun 2020 20:36:43 +0000 (20:36 +0000)
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

index 152d7efacce2fefdf45558f63af773fc4a97f7ce..9f4dd577cea9f36a69622a9237272160e1bfeaf5 100644 (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)
                        {