diff --git a/irc/handlers.go b/irc/handlers.go index 814543ef..a14cc7ed 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -815,6 +815,7 @@ func debugHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Res rb.Notice(fmt.Sprintf(client.t("To crash the server, issue the following command: /DEBUG CRASHSERVER %s"), code)) return false } + server.logger.Error("server", fmt.Sprintf("DEBUG CRASHSERVER executed by operator %s", client.Oper().Name)) go func() { // intentional nil dereference on a new goroutine, bypassing recover-from-errors var i, j *int diff --git a/irc/help.go b/irc/help.go index 4f0a19da..58de3277 100644 --- a/irc/help.go +++ b/irc/help.go @@ -153,13 +153,14 @@ https://gist.github.com/DanielOaks/c104ad6e8759c01eb5c826d627caf80d`, oper: true, text: `DEBUG