ergochat / ergo

A modern IRC server (daemon/ircd) written in Go.
https://ergo.chat/
MIT License
2.23k stars 178 forks source link

sanitize in-band error message from /rehash #2031

Closed slingamn closed 1 year ago

slingamn commented 1 year ago

@eskimo reports the following error from a failed rehash (YAML syntax error):

Message(400): Error assembling message for sending

We should be using ircutils.SanitizeText on the error. Also 400 ERR_UNKNOWNERROR is fake, we should just send a FAIL.