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

Comparing ircd-hybrid/trunk/src/s_serv.c (file contents):
Revision 3184 by michael, Thu Mar 20 17:39:13 2014 UTC vs.
Revision 3215 by michael, Tue Mar 25 19:23:15 2014 UTC

# Line 78 | Line 78 | write_links_file(void *notused)
78   {
79    FILE *file = NULL;
80    dlink_node *ptr = NULL, *ptr_next = NULL;
81 <  char buff[IRCD_BUFSIZE] = { '\0' };
81 >  char buff[IRCD_BUFSIZE] = "";
82  
83    if ((file = fopen(LIPATH, "w")) == NULL)
84      return;
# Line 127 | Line 127 | read_links_file(void)
127   {
128    FILE *file = NULL;
129    char *p = NULL;
130 <  char buff[IRCD_BUFSIZE] = { '\0' };
130 >  char buff[IRCD_BUFSIZE] = "";
131  
132    if ((file = fopen(LIPATH, "r")) == NULL)
133      return;
# Line 716 | Line 716 | server_estab(struct Client *client_p)
716    sendto_one(client_p, "SVINFO %d %d 0 :%lu", TS_CURRENT, TS_MIN,
717               (unsigned long)CurrentTime);
718  
719  if (HasID(client_p))
720    hash_add_id(client_p);
721
719    /* XXX Does this ever happen? I don't think so -db */
720    detach_conf(client_p, CONF_OPER);
721  
# Line 752 | Line 749 | server_estab(struct Client *client_p)
749  
750    dlinkAdd(client_p, make_dlink_node(), &global_serv_list);
751    hash_add_client(client_p);
752 +  hash_add_id(client_p);
753  
754    /* doesnt duplicate client_p->serv if allocated this struct already */
755    make_server(client_p);
# Line 836 | Line 834 | server_estab(struct Client *client_p)
834        continue;
835  
836      sendto_one(client_p, ":%s SID %s %d %s :%s%s",
837 <               ID(target_p->servptr), target_p->name, target_p->hopcount+1,
837 >               target_p->servptr->id, target_p->name, target_p->hopcount+1,
838                 target_p->id, IsHidden(target_p) ? "(H) " : "",
839                 target_p->info);
840  

Diff Legend

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