1
0
Fork 0
forked from External/ergo

Split isupport to its' own subpackage

This commit is contained in:
Daniel Oaks 2017-10-05 23:39:57 +10:00
parent eac6a69782
commit 4aa52956e5
5 changed files with 35 additions and 29 deletions

View file

@ -494,6 +494,14 @@ func (client *Client) LoggedIntoAccount() bool {
return client.account != nil && client.account != &NoAccount
}
// RplISupport outputs our ISUPPORT lines to the client. This is used on connection and in VERSION responses.
func (client *Client) RplISupport() {
for _, tokenline := range client.server.getISupport().CachedReply {
// ugly trickery ahead
client.Send(nil, client.server.name, RPL_ISUPPORT, append([]string{client.nick}, tokenline...)...)
}
}
// Quit sends the given quit message to the client (but does not destroy them).
func (client *Client) Quit(message string) {
client.quitMutex.Lock()