|
@@ -84,6 +84,7 @@ class BanchoLobby extends EventEmitter {
|
|
|
|
|
|
if (message == 'Cleared match host') {
|
|
if (message == 'Cleared match host') {
|
|
this.host = null;
|
|
this.host = null;
|
|
|
|
+ this.data.hostless = true;
|
|
this.emit('host');
|
|
this.emit('host');
|
|
} else if (message == 'The match has started!') {
|
|
} else if (message == 'The match has started!') {
|
|
this.scores = [];
|
|
this.scores = [];
|
|
@@ -187,6 +188,7 @@ class BanchoLobby extends EventEmitter {
|
|
player.is_host = player.irc_username == m[1];
|
|
player.is_host = player.irc_username == m[1];
|
|
this.host = player;
|
|
this.host = player;
|
|
}
|
|
}
|
|
|
|
+ this.data.hostless = false;
|
|
this.emit('host');
|
|
this.emit('host');
|
|
} else if (m = joined_regex.exec(message)) {
|
|
} else if (m = joined_regex.exec(message)) {
|
|
// player joined
|
|
// player joined
|
|
@@ -232,7 +234,7 @@ class BanchoLobby extends EventEmitter {
|
|
}
|
|
}
|
|
|
|
|
|
if (!user_is_host && !user_is_creator) {
|
|
if (!user_is_host && !user_is_creator) {
|
|
- this.send(`${source}: You need to be the lobby creator to use this command.`);
|
|
|
|
|
|
+ this.send(`${source}: You need to be the host or the lobby creator to use this command.`);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|