Update StalkerNotifications.plugin.js

This commit is contained in:
Mirco Wittrien 2018-11-24 10:46:21 +01:00 committed by GitHub
parent bf6e909211
commit 9db89baa97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ class StalkerNotifications {
getDescription () {return "Lets you observe the status of people that aren't your friends.";}
getVersion () {return "1.0.8";}
getVersion () {return "1.0.9";}
getAuthor () {return "DevilBro";}
@ -373,7 +373,7 @@ class StalkerNotifications {
for (let id in users) {
let online = this.UserMetaStore.getStatus(id) != "offline";
let user = this.UserUtils.getUser(id);
if (user && this.friendsOnlineList[id] != online && !BDFDB.loadData(id, this, "disabled")) {
if (user && this.stalkerOnlineList[id] != online && !BDFDB.loadData(id, this, "disabled")) {
this.timeLog.push({user, online, time: new Date()});
if (!(settings.onlyOnOnline && !online) && !(settings.muteOnDND && BDFDB.getUserStatus() == "dnd")) {
let data = BDFDB.loadData(user.id, "EditUsers", "users") || {};
@ -423,4 +423,4 @@ class StalkerNotifications {
timeLogModal.find(BDFDB.dotCN.modaldivider + ":last-of-type").remove();
BDFDB.appendModal(timeLogModal);
}
}
}