Skip to content

Bot self identification. #2908

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

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Bot self identification. #2908

merged 2 commits into from
Oct 23, 2024

Conversation

Rider-Linden
Copy link
Contributor

@Rider-Linden Rider-Linden commented Oct 21, 2024

Issue #2907

Process metadata sent along with chats of type `IM_NOTHING_SPECIAL', The metadata can contain information about the bot status of the sender. It may also contain a system-injected notification that is displayed to the agent as part of the 1:1 chat window.

Server PR https://github.com/secondlife/server/pull/1519

…G_SPECIAL, The metadata can contain information about the bot status of the sender. It may also contain a system-injected notification that is displayed to the agent as part of the 1:1 chat window.
is_bot = metadata["sender"]["bot"].asBoolean();
}
*-----------------------------------------------------
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment seems incorrect to assume the the sender has been flagged as a bot. For more correctness please indicate the server may or may not have flagged...

"The simulator has flagged this sender as a bot..." --> "The simulator may flag this sender as a bot in 'metadata'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The simulator may have flagged...

LLTrans::findString(buffer, notice_id, notice_args);
name = SYSTEM_FROM;
from_id = LLUUID::null;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than bother with is_system_notice you could pivot on whether notice_id is interesting: if (notice_id.notNull()).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your comment also flagged for me that the name notice_id may be mistaken to be a UUID.
Changed to notice_name and test for empty.

@Rider-Linden Rider-Linden merged commit 4cc997b into develop Oct 23, 2024
14 checks passed
@Rider-Linden Rider-Linden deleted the rider/chat_metadata branch October 23, 2024 20:51
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants