blash/commands/logout.json
2010-12-25 23:17:30 +01:00

23 lines
296 B
JSON

{
"name" : "logout",
"info" : {
"syntax" : "logout",
"brief" : "End the current user session",
},
"action" : function ( arg )
{
var out = '';
if ( shell.user == shell.json.user )
{
return out;
}
shell.user = shell.json.user;
document.cookie = '';
return out;
},
}