AI Generated:
Party breaks when bots log out and a real player is still in the group
=========================================================================
What happens
------------
I am in a party with my bots and one real player. I log the bots out with
the UnBot "log out all bots in the group" button.
The bots log out. One of them stays on my party frames. Chat (and Discord,
which mirrors chat) says that bot logged off. After that:
- Leave party from the portrait does nothing.
- Log off does nothing.
- Sending the log-off command again gets "you are not in a party."
- The server crashes, or I have to Alt+F4.
- At the realm list that character is still online, and I cannot log back in.
What the addon actually sends
-----------------------------
UnBot command 82, tooltip "Logs out all bots currently in the group,"
only says this in /say:
.playerbot bot remove *
It does not call LeaveParty, and it does not log my client out.
The "has logged off" line is the server's own chat. Discord is only
repeating that line.
The single-bot button (command 86) is different. It whispers
".playerbot bot remove" to the current target only.
No other addon in Interface\AddOns sends a bot logout. Convert2party can
kick offline raid members and can print "You are not in a party," but it
does not log bots out.
Where it goes wrong
-------------------
The server removes the bot's session, then does not send the party update
that drops that bot from the group. My client still draws them.
This shows up when a real player is still in the party. A bots-only group
can be deleted whole. With a real player left, the server has to keep the
group and remove bots one by one. The bot who "logged off" but stayed on
the portrait is the member that path did not remove.
Leave party and log off then do nothing, because those requests hit a
group the server has already half destroyed. The next log-off command
answers "you are not in a party" because the server no longer counts me
as grouped, while the client still does.
A crash there, or Alt+F4 after the link is already dead, never finishes
logout. The realm list keeps the character online until that session is
cleared.
What to check
-------------
.playerbot bot remove * on a group that still contains a real player.
The bot logout chat is sent, but the group member is not removed, and the
real player's leave-party / logout then hangs or crashes the world session.
