/[svn]/ircd-hybrid-7.2/src/client.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/client.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 502 by michael, Wed Mar 1 19:30:58 2006 UTC revision 503 by michael, Fri Mar 3 19:53:47 2006 UTC
# Line 122  make_client(struct Client *from) Line 122  make_client(struct Client *from)
122      client_p->since = client_p->lasttime = client_p->firsttime = CurrentTime;      client_p->since = client_p->lasttime = client_p->firsttime = CurrentTime;
123    
124      client_p->localClient = BlockHeapAlloc(lclient_heap);      client_p->localClient = BlockHeapAlloc(lclient_heap);
125        client_p->localClient->registration = REG_INIT;
126      /* as good a place as any... */      /* as good a place as any... */
127      dlinkAdd(client_p, make_dlink_node(), &unknown_list);      dlinkAdd(client_p, make_dlink_node(), &unknown_list);
128    }    }
# Line 1337  set_initial_nick(struct Client *client_p Line 1338  set_initial_nick(struct Client *client_p
1338        
1339    /* This had to be copied here to avoid problems.. */    /* This had to be copied here to avoid problems.. */
1340    source_p->tsinfo = CurrentTime;    source_p->tsinfo = CurrentTime;
1341      source_p->localClient->registration &= ~REG_NEED_NICK;
1342    
1343    if (source_p->name[0])    if (source_p->name[0])
1344      hash_del_client(source_p);      hash_del_client(source_p);
# Line 1350  set_initial_nick(struct Client *client_p Line 1352  set_initial_nick(struct Client *client_p
1352    /* They have the nick they want now.. */    /* They have the nick they want now.. */
1353    client_p->llname[0] = '\0';    client_p->llname[0] = '\0';
1354    
1355    if (source_p->flags & FLAGS_GOTUSER)    if (!source_p->localClient->registration)
1356    {    {
1357      strlcpy(buf, source_p->username, sizeof(buf));      strlcpy(buf, source_p->username, sizeof(buf));
1358    

Legend:
Removed from v.502  
changed lines
  Added in v.503

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28