mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 23:01:05 -05:00
Fix to last commit
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user