Add Lua scripting to log out stanza
This commit is contained in:
13
scripts_examples/logout_stanza.lua
Normal file
13
scripts_examples/logout_stanza.lua
Normal 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
|
Reference in New Issue
Block a user