diff --git a/js/client-chat.js b/js/client-chat.js index 3d96784e0..faef1dee4 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -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);