mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Make /logout equivalent to the "Log out" button
This commit is contained in:
@@ -599,6 +599,13 @@
|
||||
}
|
||||
return false;
|
||||
|
||||
case 'logout':
|
||||
$.post(app.user.getActionPHP(), {
|
||||
act: 'logout',
|
||||
userid: app.user.get('userid')
|
||||
});
|
||||
return text;
|
||||
|
||||
case 'showdebug':
|
||||
this.add('Debug battle messages: ON');
|
||||
Tools.prefs('showdebug', true);
|
||||
|
||||
Reference in New Issue
Block a user