Fixed multiple users getting unsubscribed when one user unsubscribes
This commit is contained in:
parent
b13ffebdc4
commit
967b50f006
|
@ -161,7 +161,7 @@ var Subscriptions = {
|
|||
},
|
||||
unsubscribe: function (channelID, userID, user) {
|
||||
if (this.subscribers.indexOf(userID) > -1) {
|
||||
this.subscribers.splice(this.subscribers.indexOf(userID));
|
||||
this.subscribers.splice(this.subscribers.indexOf(userID), 1);
|
||||
this.writeToFile();
|
||||
Log.event("Unsubscribed user " + (user ? user + "(" + userID + ")" : userID));
|
||||
|
||||
|
|
Loading…
Reference in New Issue