AmendHub

jcs

/

subtext

/

amendments

/

session.h

Amendments on January 24, 2024


Amendments on November 17, 2023


Amendments on June 15, 2023


Amendments on April 27, 2023


Amendments on April 26, 2023

session: Increase obuf a tad

jcs made amendment 491 11 months ago

Amendments on April 10, 2023

session+chat: Finally implement sysop paging/answering

jcs made amendment 477 about 1 year ago

session: Remove cp437 from struct, it was never used

jcs made amendment 474 about 1 year ago

Amendments on April 7, 2023

session: Turn word wrap into paginator, use in boards+mail

jcs made amendment 467 about 1 year ago

Amendments on March 26, 2023

board: Word-wrap post bodies

jcs made amendment 447 about 1 year ago

Amendments on March 25, 2023

session: Add one-line help option to session_menu

Disable it for now, I'm still not sure when I want it printed
jcs made amendment 442 about 1 year ago

Amendments on March 15, 2023

serial: Add error checking, session buf canaries to try to find bug

Something is overwriting things in the session and trashing ibuflen
or obuflen, so add canaries in between struct members to try to find
where they get trashed.
jcs made amendment 429 about 1 year ago

Amendments on February 22, 2023

session_menu: Handle multi-digit input universally here again

Move the board change into this and update all other menus that input
numbers to use it by supplying a prompt addition and short variable
to write to.
Update sysop, mail, and file menus to list 20 things at a time.
jcs made amendment 308 about 1 year ago

Amendments on February 16, 2023

board: Go back to double-digit post numbers in list view

This lets us show 20 at a time (or less if the user's terminal is
short), and avoids the goofy starting-at-zero thing.
Also add 'n' and 'p' shortcuts from the post view menu to view the
next and previous posts in the list.
jcs made amendment 302 about 1 year ago

Amendments on November 19, 2022

chat: Implement private messaging

Assign each guest their own unique chat username so it's not so
confusing if multiple guests are chatting.
jcs made amendment 290 about 1 year ago

Amendments on September 21, 2022

session: Stop persisting tally, prune old session logs

Prune after 21 days of logs by default, every morning. The db was
getting quite large and each new login or recent call check was
taking a long time.
We're stable now so we don't have to persist the call log tally to
disk, just keep it in memory.
jcs made amendment 255 about 1 year ago

Amendments on September 14, 2022

*: Add Message of the Day support

Track the highest MOTD id each user has seen and only show it on
login if the current one is higher than the user's highest seen.
Also, in migrations, we can't iterate through users while modifying
each one, because the order will change as we save and write a new
user in the map.
jcs made amendment 250 about 1 year ago

logger: Add buffered logging, support logging without updating window

During telnet negotiation, many lines are logged in quick succession
which means we spend a lot of time updating the log TextEdit. Just
buffer these logs and spit them out all at once upon login or
disconnection, so the user's login prompt is immediately responsive.
Rename session_log to session_logf while I'm in here, to reflect that
it's a format-string function.
jcs made amendment 245 about 1 year ago

Amendments on July 19, 2022

*: Add session signoff view, remove session_output_template

All remaining uses of session_output_template can use session_printf
which still does {{B}} and {{/B}} parsing.
Change session_output_view to session_output_view_or_printf to make it
easier to print a view and fallback to a string, rather than having to
check the result of session_output_view everywhere.
jcs made amendment 218 about 1 year ago

Amendments on July 16, 2022

*: Properly handle running out of sessions

Limit sessions to the number of uthreads we can handle, and then
reserve 1 session for the console.
In telnet, allocate one extra node so we can print a message to the
client that we have no free nodes, and then disconnect. Add a view
for this to make it editable.
In console, handle getting a null session back from session_create.
jcs made amendment 211 about 1 year ago

session+chat: Remove session_bar, implement simpler bar in chat

This is only used in chat and only to print a left-aligned bar.
jcs made amendment 210 about 1 year ago