16 lines
439 B
Go
16 lines
439 B
Go
package birc
|
|
|
|
// IRC formatting control codes
|
|
const (
|
|
IRCBold = "\x02" // Bold
|
|
IRCMonospace = "\x11" // Monospace/fixed-width font
|
|
IRCReset = "\x0F" // Reset all formatting
|
|
)
|
|
|
|
// FormatRoomCode formats a room code with IRC bold and monospace formatting
|
|
// Returns the code wrapped in bold + monospace with a reset at the end
|
|
func FormatRoomCode(roomCode string) string {
|
|
return IRCBold + IRCMonospace + roomCode + IRCReset
|
|
}
|
|
|