Files
chat/pkg/irc/numerics.go
clawbot 164fec3fc8
All checks were successful
check / check (push) Successful in 2m28s
refactor: add irc.MessageType custom type with Name() and String() methods
- Create 'type MessageType int' in pkg/irc/numerics.go
- Type all Rpl*/Err* numeric constants as MessageType
- Add Name() method returning the standard IRC name (e.g. RPL_WELCOME)
- Add String() method returning zero-padded numeric (e.g. 001)
- Update enqueueNumeric/respondIRCError to accept MessageType
- Update internal/db to use MessageType conversion for Name() calls
- Change names map key type from int to MessageType

Refs #52
2026-03-10 10:17:57 -07:00

12 KiB