forked from External/ergo
Split isupport to its' own subpackage
This commit is contained in:
parent
eac6a69782
commit
4aa52956e5
5 changed files with 35 additions and 29 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue