1
0
Fork 0
forked from External/ergo

logger: Add notice on connection when server is logging all I/O

This commit is contained in:
Daniel Oaks 2017-03-08 21:57:31 +10:00
parent f1bf73c249
commit 25a373b7eb
2 changed files with 8 additions and 1 deletions

View file

@ -658,6 +658,9 @@ func (server *Server) tryRegister(c *Client) {
c.RplISupport()
server.MOTD(c)
c.Send(nil, c.nickMaskString, RPL_UMODEIS, c.nick, c.ModeString())
if server.logger.DumpingRawInOut {
c.Notice("This server is in debug mode and is logging all user I/O. If you do not wish for everything you send to be readable by the server owner(s), please disconnect.")
}
}
// MOTD serves the Message of the Day.