Skip to content

Commit ac67309

Browse files
authored
Send username when connecting (#1031)
Hack af, but the alternative is breaking compatability on the last mile.
1 parent f0c594a commit ac67309

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/aoapplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void AOApplication::destruct_courtroom()
119119

120120
QString AOApplication::get_version_string()
121121
{
122-
return QString::number(RELEASE) + "." + QString::number(MAJOR_VERSION) + "." + QString::number(MINOR_VERSION) + " RC2";
122+
return QString::number(RELEASE) + "." + QString::number(MAJOR_VERSION) + "." + QString::number(MINOR_VERSION) + " RC3";
123123
}
124124

125125
QString AOApplication::find_image(QStringList p_list)

src/packet_distribution.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ void AOApplication::server_packet_received(AOPacket packet)
276276
}
277277

278278
send_server_packet(AOPacket("RD"));
279+
280+
// TODO : Implement username messaging and requirement server-side properly.
281+
send_server_packet(AOPacket("CT", {Options::getInstance().username(), ""}));
279282
log_to_demo = false;
280283
}
281284
else if (header == "FM") // Fetch music ONLY

0 commit comments

Comments
 (0)