Fix to last commit

This commit is contained in:
Cathy J. Fitzpatrick
2013-04-13 19:36:35 -06:00
parent e955c116c0
commit 1fba5bd20e

View File

@@ -84,12 +84,13 @@ var me = (function() {
}), 'text');
},
logout: function() {
var userid = this.userid;
rooms.lobby.send('/logout');
setTimeout(function() {
if (!me.named) {
$.post(actionphp, {
act: 'logout',
userid: me.userid // anti-CSRF
userid: userid // anti-CSRF
});
} else {
overlay('message', 'This server does not support logging out.');