View Issue Details

IDProjectCategoryView StatusLast Update
0006605unrealjson-rpcpublic2026-01-19 16:34
Reporterarmyn Assigned Tosyzop  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version6.2.2 
Summary0006605: num_users not updating when a user leaves or is kicked (JSON logging)
DescriptionHello,
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

Activities

syzop

2026-01-19 10:35

administrator   ~0023592

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.

syzop

2026-01-19 10:39

administrator   ~0023593

Last edited: 2026-01-19 10:40

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).

armyn

2026-01-19 16:34

reporter   ~0023594

Syzop on my side, I found that using “num_users - 1” for part and kick worked well

Issue History

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