ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/modules/m_userhost.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/modules/m_userhost.c (file contents):
Revision 8436 by michael, Thu Mar 29 09:04:53 2018 UTC vs.
Revision 8440 by michael, Thu Mar 29 13:14:41 2018 UTC

# Line 58 | Line 58 | m_userhost(struct Client *source_p, int
58    cur_len = snprintf(buf, sizeof(buf), numeric_form(RPL_USERHOST), me.name, source_p->name, "");
59    t = buf + cur_len;
60  
61 <  for (char *nick = strtok_r(parv[1], " ", &p); nick && i++ < 5;
62 <             nick = strtok_r(NULL,    " ", &p))
61 >  for (const char *name = strtok_r(parv[1], " ", &p); name && i++ < 5;
62 >                   name = strtok_r(NULL,    " ", &p))
63    {
64      const struct Client *target_p;
65 <    if ((target_p = find_person(source_p, nick)))
65 >    if ((target_p = find_person(source_p, name)))
66      {
67        /*
68         * Show real IP address for USERHOST on yourself.

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)