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

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

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

revision 502 by adx, Tue Jan 31 12:40:56 2006 UTC revision 503 by michael, Fri Mar 3 19:53:47 2006 UTC
# Line 294  register_local_user(struct Client *clien Line 294  register_local_user(struct Client *clien
294    assert(source_p != NULL);    assert(source_p != NULL);
295    assert(MyConnect(source_p));    assert(MyConnect(source_p));
296    assert(source_p->username != username);    assert(source_p->username != username);
297      assert(!source_p->localClient->registration);
298    
299    if (ConfigFileEntry.ping_cookie)    if (ConfigFileEntry.ping_cookie)
300    {    {
# Line 830  do_local_user(const char *nick, struct C Line 831  do_local_user(const char *nick, struct C
831      return;      return;
832    }    }
833    
834    source_p->flags |= FLAGS_GOTUSER;    source_p->localClient->registration &= ~REG_NEED_USER;
835    
836    /*    /*
837     * don't take the clients word for it, ever     * don't take the clients word for it, ever
# Line 847  do_local_user(const char *nick, struct C Line 848  do_local_user(const char *nick, struct C
848      strlcpy(source_p->username, username, sizeof(source_p->username));      strlcpy(source_p->username, username, sizeof(source_p->username));
849    }    }
850    
851    if (source_p->name[0])    if (!source_p->localClient->registration)
   {  
852      /* NICK already received, now I have USER... */      /* NICK already received, now I have USER... */
853      register_local_user(client_p, source_p, source_p->name, username);      register_local_user(client_p, source_p, source_p->name, username);
   }  
854  }  }
855    
856  /* change_simple_umode()  /* change_simple_umode()

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

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