Skip to content
Discussion options

You must be logged in to vote

If you're seeing 6hello world, that means it has all of the control codes, but might be in a format that whatever you're logging to may not like. For example, using the following:

client.Handlers.Add(girc.PRIVMSG, func(c *girc.Client, e girc.Event) {
	fmt.Printf("%q\n", e.Last())
})

and sending a red fg, lightgreen bg message with "foobar", I see (%q in this case escaping everything, so you see the raw version):

"\x034,9foobar\x03"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mibar-me
Comment options

@lrstanley
Comment options

Answer selected by lrstanley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants