Checking the NULL for something that never will be NULL or how i am dumb

This commit is contained in:
Alex 2020-08-02 21:28:56 +02:00
parent 1e6aa0afdc
commit 16b6e0dddc
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ signed int Tok_user(char* str, IRC_User* out, bool useorig)
* It might be a actual nickname, but this is the most common around every network
* It is left to the user to decide and handle the result accordingly
*/
if (out->host == NULL && out->nick == NULL) {
if (out->host == NULL && out->user == NULL) {
out->host = out->nick;
out->nick = NULL;
}