From a19324b948d8dd7c3ffb1d916b08f5cb58c64174 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 5 Oct 2020 07:35:18 -0400 Subject: [PATCH] fix #1293 --- default.yaml | 1 - irc/client.go | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/default.yaml b/default.yaml index e3db7c29..6118f86d 100644 --- a/default.yaml +++ b/default.yaml @@ -664,7 +664,6 @@ logging: # server server startup, rehash, and shutdown events # accounts account registration and authentication # channels channel creation and operations - # commands command calling and operations # opers oper actions, authentication, etc # services actions related to NickServ, ChanServ, etc. # internal unexpected runtime behavior, including potential bugs diff --git a/irc/client.go b/irc/client.go index 40406fda..603bb11b 100644 --- a/irc/client.go +++ b/irc/client.go @@ -1675,10 +1675,14 @@ func (session *Session) SendRawMessage(message ircmsg.IrcMessage, blocking bool) } if blocking { - return session.socket.BlockingWrite(line) + err = session.socket.BlockingWrite(line) } else { - return session.socket.Write(line) + err = session.socket.Write(line) } + if err != nil { + session.client.server.logger.Info("quit", "send error to client", fmt.Sprintf("%s [%d]", session.client.Nick(), session.sessionID), err.Error()) + } + return err } // Send sends an IRC line to the client.