Skip to content

Commit

Permalink
Send username when connecting (#1031)
Browse files Browse the repository at this point in the history
Hack af, but the alternative is breaking compatability on the last mile.
  • Loading branch information
Salanto authored Aug 2, 2024
1 parent f0c594a commit ac67309
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/aoapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void AOApplication::destruct_courtroom()

QString AOApplication::get_version_string()
{
return QString::number(RELEASE) + "." + QString::number(MAJOR_VERSION) + "." + QString::number(MINOR_VERSION) + " RC2";
return QString::number(RELEASE) + "." + QString::number(MAJOR_VERSION) + "." + QString::number(MINOR_VERSION) + " RC3";
}

QString AOApplication::find_image(QStringList p_list)
Expand Down
3 changes: 3 additions & 0 deletions src/packet_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ void AOApplication::server_packet_received(AOPacket packet)
}

send_server_packet(AOPacket("RD"));

// TODO : Implement username messaging and requirement server-side properly.
send_server_packet(AOPacket("CT", {Options::getInstance().username(), ""}));
log_to_demo = false;
}
else if (header == "FM") // Fetch music ONLY
Expand Down

0 comments on commit ac67309

Please sign in to comment.