blash/commands/logout.json

24 lines
296 B
JSON
Raw Normal View History

2010-12-25 23:17:30 +01:00
{
"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;
},
}