wow that took awhile
This commit is contained in:
15
bridge/irc/formatting.go
Normal file
15
bridge/irc/formatting.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user