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

Comparing ircd-hybrid-8/src/s_serv.c (file contents):
Revision 1157 by michael, Tue Aug 9 22:03:59 2011 UTC vs.
Revision 1169 by michael, Fri Aug 12 18:45:03 2011 UTC

# Line 367 | Line 367 | hunt_server(struct Client *client_p, str
367     * non-matching lookups.
368     */
369    if (MyClient(source_p))
370 <    target_p = find_client(parv[server]);
370 >    target_p = hash_find_client(parv[server]);
371    else
372      target_p = find_person(client_p, parv[server]);
373  
# Line 375 | Line 375 | hunt_server(struct Client *client_p, str
375      if (target_p->from == source_p->from && !MyConnect(target_p))
376        target_p = NULL;
377  
378 <  if (target_p == NULL && (target_p = find_server(parv[server])))
378 >  if (target_p == NULL && (target_p = hash_find_server(parv[server])))
379      if (target_p->from == source_p->from && !MyConnect(target_p))
380        target_p = NULL;
381  
# Line 389 | Line 389 | hunt_server(struct Client *client_p, str
389    {
390      if (!wilds)
391      {
392 <      if (!(target_p = find_server(parv[server])))
392 >      if (!(target_p = hash_find_server(parv[server])))
393        {
394          sendto_one(source_p, form_str(ERR_NOSUCHSERVER),
395                     me.name, parv[0], parv[server]);
# Line 506 | Line 506 | try_connections(void *unused)
506      /* Found a CONNECT config with port specified, scan clients
507       * and see if this server is already connected?
508       */
509 <    if (find_server(conf->name) != NULL)
509 >    if (hash_find_server(conf->name) != NULL)
510        continue;
511  
512      if (CurrUserCount(cltmp) < MaxTotal(cltmp))
# Line 1593 | Line 1593 | serv_connect(struct AccessItem *aconf, s
1593    /* Make sure this server isn't already connected
1594     * Note: aconf should ALWAYS be a valid C: line
1595     */
1596 <  if ((client_p = find_server(conf->name)) != NULL)
1596 >  if ((client_p = hash_find_server(conf->name)) != NULL)
1597    {
1598      sendto_realops_flags(UMODE_ALL, L_ADMIN,
1599                           "Server %s already present from %s",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines