Keep track of login state in session module, it might be useful somewhere

This commit is contained in:
Tissevert 2019-12-23 22:28:05 +01:00
parent c329ed556c
commit 596a3cc453

View file

@ -12,6 +12,7 @@ function Session(modules) {
modules.messaging.addEventListener(["LogIn"], function(o) { modules.messaging.addEventListener(["LogIn"], function(o) {
if(is(o.from)) { if(is(o.from)) {
name = o.as; name = o.as;
loggedIn = true;
} }
}); });