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 |
|
{ |
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 |
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() |