Rename voiceconnection.speaking to voiceconnection.memberd

This commit is contained in:
Amish Shah
2015-12-26 18:05:31 +00:00
parent 0113202c2f
commit 3b7c5aa96a
6 changed files with 11 additions and 11 deletions

View File

@@ -181,7 +181,7 @@ var Server = (function (_Equality) {
// removes from other speaking channels first
this.eventStopSpeaking(user);
channel.speaking.add(user);
channel.members.add(user);
user.voiceChannel = channel;
return true;
} else {
@@ -205,8 +205,8 @@ var Server = (function (_Equality) {
var chan = _ref3;
if (chan.speaking.has(user)) {
chan.speaking.remove(user);
if (chan.members.has(user)) {
chan.members.remove(user);
user.voiceChannel = null;
return chan;
}