From 79c730dd4407eca66f672dbe8e3953c96580ef90 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 12 May 2019 03:27:02 -0400 Subject: [PATCH] fix #429 --- irc/handlers.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/irc/handlers.go b/irc/handlers.go index 77bb2ea0..feda4447 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -1075,6 +1075,11 @@ Get an explanation of , or "index" for a list of help topics.`), rb) // HISTORY me 15 func historyHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool { config := server.Config() + if !config.History.Enabled { + rb.Notice(client.t("This command has been disabled by the server administrators")) + return false + } + target := msg.Params[0] var hist *history.Buffer channel := server.channels.Get(target)