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

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

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

revision 501 by michael, Wed Mar 1 19:32:01 2006 UTC revision 502 by michael, Fri Mar 3 19:49:25 2006 UTC
# Line 113  make_client(struct Client *from) Line 113  make_client(struct Client *from)
113      client_p->since = client_p->lasttime = client_p->firsttime = CurrentTime;      client_p->since = client_p->lasttime = client_p->firsttime = CurrentTime;
114    
115      client_p->localClient = BlockHeapAlloc(lclient_heap);      client_p->localClient = BlockHeapAlloc(lclient_heap);
116        client_p->localClient->registration = REG_INIT;
117      /* as good a place as any... */      /* as good a place as any... */
118      dlinkAdd(client_p, &client_p->localClient->lclient_node, &unknown_list);      dlinkAdd(client_p, &client_p->localClient->lclient_node, &unknown_list);
119    }    }
# Line 1409  set_initial_nick(struct Client *source_p Line 1410  set_initial_nick(struct Client *source_p
1410    
1411    /* This had to be copied here to avoid problems.. */    /* This had to be copied here to avoid problems.. */
1412    source_p->tsinfo = CurrentTime;    source_p->tsinfo = CurrentTime;
1413      source_p->localClient->registration &= ~REG_NEED_NICK;
1414    
1415    if (source_p->name[0])    if (source_p->name[0])
1416      hash_del_client(source_p);      hash_del_client(source_p);
# Line 1419  set_initial_nick(struct Client *source_p Line 1421  set_initial_nick(struct Client *source_p
1421    /* fd_desc is long enough */    /* fd_desc is long enough */
1422    fd_note(&source_p->localClient->fd, "Nick: %s", nick);    fd_note(&source_p->localClient->fd, "Nick: %s", nick);
1423    
1424    if (source_p->flags & FLAGS_GOTUSER)    if (!source_p->localClient->registration)
1425    {    {
1426      strlcpy(buf, source_p->username, sizeof(buf));      strlcpy(buf, source_p->username, sizeof(buf));
1427    

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

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