Fix NOTICE log formatting

ZNC uses hyphens instead of angle brackets [1].

[1]: 82c4ad8362/modules/log.cpp (L495)
This commit is contained in:
Simon Ser 2020-04-06 18:45:30 +02:00
parent e1ea0d4fb5
commit c985b88559
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -102,7 +102,9 @@ func formatMessage(msg *irc.Message) string {
return fmt.Sprintf("*** Quits: %s (%s@%s) (%s)", msg.Prefix.Name, msg.Prefix.User, msg.Prefix.Host, reason)
case "MODE":
return fmt.Sprintf("*** %s sets mode: %s", msg.Prefix.Name, strings.Join(msg.Params[1:], " "))
case "PRIVMSG", "NOTICE":
case "NOTICE":
return fmt.Sprintf("-%s- %s", msg.Prefix.Name, msg.Params[1])
case "PRIVMSG":
return fmt.Sprintf("<%s> %s", msg.Prefix.Name, msg.Params[1])
default:
return ""