From 29266ce80f9039c1c46f225c73cfa5a67ecd2413 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sat, 3 Feb 2018 19:00:27 +1000 Subject: [PATCH] nickserv: Fix help display --- irc/client.go | 5 +++++ irc/nickserv.go | 2 ++ 2 files changed, 7 insertions(+) diff --git a/irc/client.go b/irc/client.go index 12777737..35e2890a 100644 --- a/irc/client.go +++ b/irc/client.go @@ -815,6 +815,11 @@ func (client *Client) Notice(text string) { } lines := wordWrap(text, limit) + // force blank lines to be sent if we receive them + if len(lines) == 0 { + lines = []string{""} + } + for _, line := range lines { client.Send(nil, client.server.name, "NOTICE", client.nick, line) } diff --git a/irc/nickserv.go b/irc/nickserv.go index 8b699a99..2fc2f448 100644 --- a/irc/nickserv.go +++ b/irc/nickserv.go @@ -305,5 +305,7 @@ func (server *Server) nickservReceivePrivmsg(client *Client, message string) { } client.Notice(client.t("Could not login with your TLS certificate or supplied username/password")) + } else { + client.Notice(client.t("Command not recognised. To see the available commands, run /NS HELP")) } }