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

Comparing ircd-hybrid-7.2/src/s_user.c (file contents):
Revision 386 by adx, Tue Jan 31 12:40:56 2006 UTC vs.
Revision 503 by michael, Fri Mar 3 19:53:47 2006 UTC

# Line 294 | Line 294 | register_local_user(struct Client *clien
294    assert(source_p != NULL);
295    assert(MyConnect(source_p));
296    assert(source_p->username != username);
297 +  assert(!source_p->localClient->registration);
298  
299    if (ConfigFileEntry.ping_cookie)
300    {
# Line 830 | Line 831 | do_local_user(const char *nick, struct C
831      return;
832    }
833  
834 <  source_p->flags |= FLAGS_GOTUSER;
834 >  source_p->localClient->registration &= ~REG_NEED_USER;
835  
836    /*
837     * don't take the clients word for it, ever
# Line 847 | Line 848 | do_local_user(const char *nick, struct C
848      strlcpy(source_p->username, username, sizeof(source_p->username));
849    }
850  
851 <  if (source_p->name[0])
851 <  {
851 >  if (!source_p->localClient->registration)
852      /* NICK already received, now I have USER... */
853      register_local_user(client_p, source_p, source_p->name, username);
854  }
854   }
855  
856   /* change_simple_umode()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines