Skip to content

IRC: let authenticated users join channels on registered servers#1044

Open
ryokun6 wants to merge 1 commit intocursor/add-irc-chat-support-6c78from
cursor/irc-nonadmin-participation-6c78
Open

IRC: let authenticated users join channels on registered servers#1044
ryokun6 wants to merge 1 commit intocursor/add-irc-chat-support-6c78from
cursor/irc-nonadmin-participation-6c78

Conversation

@ryokun6
Copy link
Copy Markdown
Owner

@ryokun6 ryokun6 commented Apr 10, 2026

Summary

  • Channel listing (GET /api/irc/servers/:id/channels): any authenticated user can browse channels on servers already in the registry; adding/removing servers stays admin-only.
  • IRC room creation (POST /api/rooms with type: "irc"): non-admins must send ircServerId (registry id); the server runs LIST and only allows the channel if it appears in that snapshot (prevents arbitrary host/port from non-admins). Admins keep the previous flexibility (optional ircServerId or manual host/port/label).
  • Chats UI: IRC tab is visible to everyone; Add server / delete non-default server remain admin-only; non-admins must pick a channel from the list (filter-only field).

Testing

  • bun run build
  • bun test tests/test-irc-bridge.test.ts
Open in Web Open in Cursor 

- GET /api/irc/servers/:id/channels: require auth only (not admin)
- POST /api/rooms type=irc: non-admins must send ircServerId and channel
  must appear in server LIST; admins may still use custom host/port
- CreateRoomDialog: IRC tab for all users; add/delete server admin-only;
  non-admins pick channels from list only
- Wire ircServerId through client createRoom payload

Co-authored-by: Ryo Lu <me@ryo.lu>
@ryokun6 ryokun6 marked this pull request as ready for review April 10, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants