mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-21 11:48:26 -07:00
Get labeled-reply working just fine
This commit is contained in:
@@ -77,7 +77,7 @@ func (rb *ResponseBuffer) AddSplitMessageFromClient(msgid string, from *Client,
|
||||
func (rb *ResponseBuffer) Send() error {
|
||||
// fall out if no messages to send
|
||||
if len(rb.messages) == 0 {
|
||||
return
|
||||
return nil
|
||||
}
|
||||
|
||||
// make batch and all if required
|
||||
@@ -126,3 +126,8 @@ func (rb *ResponseBuffer) Send() error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Notice sends the client the given notice from the server.
|
||||
func (rb *ResponseBuffer) Notice(text string) {
|
||||
rb.Add(nil, rb.target.server.name, "NOTICE", rb.target.nick, text)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user