New Last 10 Callers
This commit is contained in:
8
dist/scripts/login_stanza.lua
vendored
8
dist/scripts/login_stanza.lua
vendored
@@ -60,9 +60,13 @@ bbs_write_string("\r\n\r\n\027[1;37mLast 10 callers:\r\n");
|
||||
bbs_write_string("\027[1;30m-------------------------------------------------------------------------------\r\n");
|
||||
|
||||
while (i < 10) do
|
||||
user, location, ltime = bbs_read_last10(i);
|
||||
user, location, ltime, calls = bbs_read_last10(i);
|
||||
if (user ~= nil) then
|
||||
bbs_write_string(string.format("\027[1;37m%-16s \027[1;36m%-32s \027[1;32m%s\r\n", user, location, os.date("%H:%M %d-%m-%y" ,ltime)));
|
||||
if calls == 1 then
|
||||
bbs_write_string(string.format("\027[1;37m%-16s \027[1;36m%-32s \027[1;32m%s \027[1;33mN\r\n", user, location, os.date("%H:%M %d-%m-%y" ,ltime)));
|
||||
else
|
||||
bbs_write_string(string.format("\027[1;37m%-16s \027[1;36m%-32s \027[1;32m%s\r\n", user, location, os.date("%H:%M %d-%m-%y" ,ltime)));
|
||||
end
|
||||
end
|
||||
|
||||
i = i + 1;
|
||||
|
Reference in New Issue
Block a user