ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/src/client.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/client.c (file contents):
Revision 498 by michael, Wed Mar 1 19:30:58 2006 UTC vs.
Revision 503 by michael, Fri Mar 3 19:53:47 2006 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines