Skip to content

Fix IRC attendance query resulting in name/presence flood#313

Merged
raucao merged 1 commit into
masterfrom
fix/sockethub-1085-attendance-channel-name
Jun 15, 2026
Merged

Fix IRC attendance query resulting in name/presence flood#313
raucao merged 1 commit into
masterfrom
fix/sockethub-1085-attendance-channel-name

Conversation

@silverbucket

Copy link
Copy Markdown
Member

Summary

On IRC, queryAttendance sent a Sockethub query/attendance job whose target had only an id and no name. The Sockethub IRC platform builds the NAMES command from target.name, so the omission produced a bare NAMES (no channel argument). IRC servers answer a bare NAMES with the entire network channel list, flooding the connection with presence for every channel on every join.

This sets name on the attendance target, mirroring what join already does.

Closes #312
Refs sockethub/sockethub#1085

queryAttendance sent a query/attendance job whose target had only an id
and no name. The Sockethub IRC platform builds the NAMES command from
target.name, so the omission produced a bare NAMES, causing the server to
return the entire network channel list and flood the connection on every
join.

Set name on the target, mirroring join.

Closes #312
Refs sockethub/sockethub#1085
@silverbucket silverbucket self-assigned this Jun 14, 2026
@silverbucket silverbucket requested a review from raucao June 14, 2026 19:50
@raucao raucao added the bug label Jun 15, 2026
@raucao raucao changed the title fix(irc): set channel name on attendance query target Fix IRC attendance query resulting in name/presence flood Jun 15, 2026

@raucao raucao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as advertised. 👍

@raucao raucao merged commit fc76dbf into master Jun 15, 2026
4 checks passed
@raucao raucao deleted the fix/sockethub-1085-attendance-channel-name branch June 15, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IRC: queryAttendance omits target.name, causing a bare NAMES flood

2 participants