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:
parent
6784cf82bf
commit
29266ce80f
@ -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)
|
||||
}
|
||||
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user