scripts/channels: fix periodic join/leave event