mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
parent
467df24914
commit
19dbe10c99
1 changed files with 1 additions and 1 deletions
|
|
@ -1196,7 +1196,7 @@ func (client *Client) Quit(message string, session *Session) {
|
||||||
// #364: don't send QUIT lines to unregistered clients
|
// #364: don't send QUIT lines to unregistered clients
|
||||||
if client.registered {
|
if client.registered {
|
||||||
quitMsg := ircmsg.MakeMessage(nil, nuh, "QUIT", message)
|
quitMsg := ircmsg.MakeMessage(nil, nuh, "QUIT", message)
|
||||||
if session.capabilities.Has(caps.ServerTime) {
|
if sess.capabilities.Has(caps.ServerTime) {
|
||||||
quitMsg.SetTag("time", now.Format(utils.IRCv3TimestampFormat))
|
quitMsg.SetTag("time", now.Format(utils.IRCv3TimestampFormat))
|
||||||
}
|
}
|
||||||
finalData, _ = quitMsg.LineBytesStrict(false, MaxLineLen)
|
finalData, _ = quitMsg.LineBytesStrict(false, MaxLineLen)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue