|
@@ -228,7 +228,9 @@ class BanchoLobby extends EventEmitter {
|
|
let user_is_creator = false;
|
|
let user_is_creator = false;
|
|
for (const player of this.players) {
|
|
for (const player of this.players) {
|
|
if (player.irc_username == source) {
|
|
if (player.irc_username == source) {
|
|
- user_is_creator = player.user_id == this.data.creator_id;
|
|
|
|
|
|
+ // NOTE: We also check for username, since user id is not populated on join
|
|
|
|
+ // This allows lobby creators to skip maps before they start playing.
|
|
|
|
+ user_is_creator = player.user_id == this.data.creator_id || player.irc_username == this.data.creator_name || player.username == this.data.creator_name;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|