mirror of
https://github.com/gissleh/irc.git
synced 2026-09-29 00:05:34 +00:00
client: Misc cleanups and added 'hook.ready' event.
This commit is contained in:
@@ -658,7 +658,7 @@ func (client *Client) handleEvent(event *Event) {
|
||||
message += " :" + event.Text
|
||||
}
|
||||
|
||||
client.Send(message + "")
|
||||
client.Send(message)
|
||||
}
|
||||
|
||||
// Client Registration
|
||||
@@ -1059,6 +1059,7 @@ func (client *Client) handleEvent(event *Event) {
|
||||
client.Sendf("JOIN %s", strings.Join(channels, ","))
|
||||
|
||||
client.EmitNonBlocking(rejoinEvent)
|
||||
client.EmitNonBlocking(NewEvent("hook", "ready"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,11 +25,11 @@ type Config struct {
|
||||
SkipSSLVerification bool `json:"skipSslVerification"`
|
||||
|
||||
// The Password used upon connection. This is not your NickServ/SASL password!
|
||||
Password string
|
||||
Password string `json:"password"`
|
||||
|
||||
// The rate (lines per second) to send with Client.SendQueued. Default is 2, which is how
|
||||
// clients that don't excess flood does it.
|
||||
SendRate int
|
||||
SendRate int `json:"sendRate"`
|
||||
}
|
||||
|
||||
// WithDefaults returns the config with the default values
|
||||
|
||||
Reference in New Issue
Block a user