]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/baseui.js
switch to using sessionStorage for login tickets + store qticket in there instead...
[irc/quakenet/qwebirc.git] / js / ui / baseui.js
index 4bdd6a3022de302472b54c73f226bde737939cdc..1482b6aea05c428e0f12b9dfcd696040333ed97e 100644 (file)
@@ -533,15 +533,17 @@ qwebirc.ui.QuakeNetUI = new Class({
     return this.parent(name, window);
   },
   logout: function() {
-    if(!qwebirc.auth.loggedin())
+    if(!qwebirc.auth.loggedin(true)) {
+      this.getActiveWindow().errorMessage("Not logged in!");
       return;
+    }
     if(confirm("Log out?")) {
       this.clients.each(function(k, v) {
         v.quit("Logged out");
       }, this);
       
       /* HACK */
-      var foo = function() { document.location = qwebirc.global.dynamicBaseURL + "auth?logout=1"; };
+      var foo = function() { document.location = "/auth?logout=1"; };
       foo.delay(500);
     }
   }