Closed tuday2 closed 4 years ago
MAJORBBS.960
is STP4CS
which strips the buffer for C/S output. Because MBBSEmu doesn't support C/S mode, we can probably just return the same buffer.
This one will need to be investigated a little bit as I'm concerned the emulator is being sent down a logic path where the module THINKS the user is using the Client-Server component when it is in fact not. I suspect there might be a key/flag we're not setting properly to tell the module it's not in Worldgroup Client-Server mode.
It looks like STP4CS
strips specific characters from a given string. I haven't been able to determine which characters get stripped yet, but this might be more benign than I previously thought.
Wrote a quick test module that looked at stp4cs
and it appears to strip any ASCII character <= 32 and >= 127 (so only printable characters).
void EXPORT stp4cs_test()
{
char buf[2];
int i;
for (i = 1; i < 128; i++)
{
buf[0] = (char)i;
buf[1] = 0;
if(strlen(stp4cs(buf)) == 0)
{
shocst("Stripped", "Stripped: %d", i);
}
}
}
I'll get this ordinal implemented and pushed.
Module Information
Describe the bug Crashes when entering module
To Reproduce Steps to reproduce the behavior:
Expected behavior Play Backgammon
Screenshots
Software Information: