ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/client.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/client.c (file contents):
Revision 7762 by michael, Thu Oct 6 16:45:18 2016 UTC vs.
Revision 7797 by michael, Tue Oct 18 17:27:10 2016 UTC

# Line 86 | Line 86 | make_client(struct Client *from)
86   {
87    struct Client *const client_p = mp_pool_get(client_pool);
88  
89 <  if (!from)
89 >  if (from)
90 >    client_p->from = from;
91 >  else
92    {
93      client_p->from = client_p;  /* 'from' of local client is self! */
94      client_p->connection = mp_pool_get(connection_pool);
# Line 98 | Line 100 | make_client(struct Client *from)
100      /* as good a place as any... */
101      dlinkAdd(client_p, &client_p->connection->lclient_node, &unknown_list);
102    }
101  else
102    client_p->from = from;
103  
104    client_p->idhnext = client_p;
105    client_p->hnext = client_p;
# Line 498 | Line 498 | find_chasing(struct Client *source_p, co
498      return NULL;
499  
500    target_p = whowas_get_history(name, ConfigGeneral.kill_chase_time_limit);
501
501    if (!target_p)
503  {
502      sendto_one_numeric(source_p, &me, ERR_NOSUCHNICK, name);
505    return NULL;
506  }
503  
504    return target_p;
505   }

Diff Legend

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