Add Lua scripting to log out stanza

This commit is contained in:
Andrew Pamment
2016-09-05 14:05:17 +10:00
parent 146924694c
commit 0088ce8a71
7 changed files with 74 additions and 24 deletions

View File

@@ -0,0 +1,13 @@
function logout()
bbs_write_string("\r\n\r\nAre you sure you want to logoff (Y/N) ? ");
cmd = bbs_read_char();
if (cmd == 10) then
return 0;
end
bbs_display_ansi("goodbye");
return 1;
end