Fix the way we send usernames - should address issues with password warnings from servers
This commit is contained in:
parent
d2451bbb9a
commit
11ffa432eb
|
@ -446,9 +446,10 @@ express_network_username_send(Express_Network *net)
|
|||
if (gethostname(host, sizeof(host)) < 0)
|
||||
strcpy(host, "unknown");
|
||||
|
||||
// FIXME the net->nick should really be a real name but we don't save that
|
||||
len = snprintf(data, sizeof(data), "USER %s %s %s :%s\r\n",
|
||||
net->nick ? net->nick : "express_user", host, host,
|
||||
net->user ? net->user : "nobody");
|
||||
net->user ? net->user : "nobody", host, host,
|
||||
net->nick ? net->nick : "express_user");
|
||||
express_network_data_send(net, data, len);
|
||||
}
|
||||
|
||||
|
@ -622,8 +623,9 @@ express_network_connect(Express_Network *net)
|
|||
if (net->conn)
|
||||
{
|
||||
express_network_server_password_send(net);
|
||||
express_network_nickname_send(net);
|
||||
express_network_username_send(net);
|
||||
express_network_nickname_send(net);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue