From 1fba5bd20e9f11ada5d0a8925ef81d64a4fd46eb Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Sat, 13 Apr 2013 19:36:35 -0600 Subject: [PATCH] Fix to last commit --- js/sim.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/sim.js b/js/sim.js index c95643514..ddc45f385 100644 --- a/js/sim.js +++ b/js/sim.js @@ -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.');