-
Notifications
You must be signed in to change notification settings - Fork 64
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
Bot self identification. #2908
Conversation
…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(); | ||
} | ||
*----------------------------------------------------- | ||
*/ |
There was a problem hiding this comment.
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'.
There was a problem hiding this comment.
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; | ||
} |
There was a problem hiding this comment.
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())
.
There was a problem hiding this comment.
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.
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