Skip to content

Commit 6c4c13f

Browse files
committed
profileid -> profile_id
1 parent 4cfcf73 commit 6c4c13f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Client/scripts/partySenders/partySenders.gml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
function sendPartyInvite(uname = "", profileid = "") {
2-
send({ cmd: "party invite", profileid, uname })
1+
function sendPartyInvite(uname = "", profile_id = "") {
2+
send({ cmd: "party invite", profile_id, uname })
33
}
44

55
function sendPartyLeave() {

TypescriptServer/src/cmd/handlers/party.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ addHandler('party kick', (c, data) => {
1818
if (!c.party) return;
1919
if (!c.party.isLeader(c)) return;
2020

21-
let { profileid, username } = data;
21+
let { profile_id, username } = data;
2222
let reason = data.reason ?? '';
2323
let member:Client = null;
2424

25-
if (profileid) {
26-
member = global.clients.find(u => u.profile.id === profileid);
25+
if (profile_id) {
26+
member = global.clients.find(u => u.profile.id === profile_id);
2727
}
2828
else {
2929
member = global.clients.find(u => u.name === username);
@@ -42,11 +42,11 @@ addHandler('party disband', (c) => {
4242
});
4343

4444
addHandler('party invite', (c, data) => {
45-
let { profileid, username } = data;
45+
let { profile_id, username } = data;
4646
let user:Client = null;
4747

48-
if (profileid) {
49-
user = global.clients.find(u => u.profile.id === profileid);
48+
if (profile_id) {
49+
user = global.clients.find(u => u.profile.id === profile_id);
5050
}
5151
else {
5252
user = global.clients.find(u => u.name === username);

0 commit comments

Comments
 (0)