Skip to content

Commit

Permalink
fix #1293
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn committed Oct 5, 2020
1 parent 2b66dde commit a19324b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions irc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a19324b

Please sign in to comment.