Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AgentManager.cs Chat function does not allow zero-length messages to be sent #99

Closed
stonejohnson opened this issue Dec 28, 2024 · 2 comments
Assignees

Comments

@stonejohnson
Copy link

AgentManager.cs Chat function does not allow zero-length messages to be sent, which breaks some RLV functionality in Radegast. It would be great to be able to send zero-length messages.

On line 1603 of AgentManager.cs there is the line

        else if ((message.Length > 0) && (message.Length < 1000))

which kills zero-byte-length messages. Maybe this is necessary for other stuff to work, but it kills these RLV functions when you get to the bottom of the folder tree - it's important to return a null message (and not a blank which is interpreted as a filename). Changing the line to

        else if ((message.Length >= 0) && (message.Length < 1000))

will fix the problem. Alternately there could be an alternate call that would allow the zero-length message, e.g.,

ChatZ(string message, int channel, ChatType type, bool split, bool hidechunk) same functionality but allows the zero-length message.

Note that this aspect of RLV used to work in Radegast (5 years ago?) so it was permitted to send the zero-length message.

Copy link

Thank you for taking the time to improve LibreMetaverse! We will review your contribution shortly.

@cinderblocks cinderblocks self-assigned this Dec 29, 2024
@cinderblocks
Copy link
Owner

Fixed in commit 7993698. Will be available in 2.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants