lrstanley / girc

:bomb: girc is a flexible IRC library for Go :ok_hand:
https://pkg.go.dev/github.com/lrstanley/girc
MIT License
137 stars 13 forks source link

event: Use different source format for PRIVMSG and NOTICE #44

Closed nmeum closed 3 years ago

nmeum commented 3 years ago

This allows distinguishing the two commands in the output of the Pretty() function. This is useful for IRC client which use the output of the Pretty() function for formating IRC messages.

lrstanley commented 3 years ago

LGTM

nmeum commented 3 years ago

Unfortunately, I introduced a minor typo by forgetting to update the fmt.Sprintf() format string.

Sorry for that! Fix in #45 :S