View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006605 | unreal | json-rpc | public | 2026-01-19 04:35 | 2026-01-19 16:34 |
| Reporter | armyn | Assigned To | syzop | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | feedback | Resolution | open | ||
| Product Version | 6.2.2 | ||||
| Summary | 0006605: num_users not updating when a user leaves or is kicked (JSON logging) | ||||
| Description | Hello, In the JSON logging system, as soon as a user joins a channel, the num_users value is correct. However, when the user leaves or gets kicked, the value is not updated and remains the same, as if the user had never left the channel. | ||||
| 3rd party modules | |||||
|
|
num_users comes from channel->users, I doubt that one is incorrect since it would show up in /LIST and such. Maybe you mean at the exact instance of the kick/part event the channel object still includes the user in the count? Yeah that could be. I think that hook is called when the user is still in the channel. |
|
|
And just to clarify that last one: we can't really change that. Because if we already let the user removed from the channel, then the channel may be destroyed (if it was the last person to leave and channel is -P), and then you won't have a "channel" object at all anymore. But just let me know if it was that, or something else. Then I can improve the documentation about this (in some way). |
|
|
Syzop on my side, I found that using “num_users - 1” for part and kick worked well |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-01-19 04:35 | armyn | New Issue | |
| 2026-01-19 10:35 | syzop | Note Added: 0023592 | |
| 2026-01-19 10:35 | syzop | Assigned To | => syzop |
| 2026-01-19 10:35 | syzop | Status | new => feedback |
| 2026-01-19 10:39 | syzop | Note Added: 0023593 | |
| 2026-01-19 10:40 | syzop | Note Edited: 0023593 | |
| 2026-01-19 16:34 | armyn | Note Added: 0023594 |