Fix NOTICE log formatting
ZNC uses hyphens instead of angle brackets [1].
[1]: 82c4ad8362/modules/log.cpp (L495)
This commit is contained in:
parent
e1ea0d4fb5
commit
c985b88559
@ -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)
|
return fmt.Sprintf("*** Quits: %s (%s@%s) (%s)", msg.Prefix.Name, msg.Prefix.User, msg.Prefix.Host, reason)
|
||||||
case "MODE":
|
case "MODE":
|
||||||
return fmt.Sprintf("*** %s sets mode: %s", msg.Prefix.Name, strings.Join(msg.Params[1:], " "))
|
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])
|
return fmt.Sprintf("<%s> %s", msg.Prefix.Name, msg.Params[1])
|
||||||
default:
|
default:
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user