3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

nickserv: Fix help display

This commit is contained in:
Daniel Oaks 2018-02-03 19:00:27 +10:00
parent 6784cf82bf
commit 29266ce80f
2 changed files with 7 additions and 0 deletions

View File

@ -815,6 +815,11 @@ func (client *Client) Notice(text string) {
} }
lines := wordWrap(text, limit) lines := wordWrap(text, limit)
// force blank lines to be sent if we receive them
if len(lines) == 0 {
lines = []string{""}
}
for _, line := range lines { for _, line := range lines {
client.Send(nil, client.server.name, "NOTICE", client.nick, line) client.Send(nil, client.server.name, "NOTICE", client.nick, line)
} }

View File

@ -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")) 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"))
} }
} }