mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-14 16:09:32 +01:00
fix #1293
This commit is contained in:
parent
2b66dde72e
commit
a19324b948
@ -664,7 +664,6 @@ logging:
|
|||||||
# server server startup, rehash, and shutdown events
|
# server server startup, rehash, and shutdown events
|
||||||
# accounts account registration and authentication
|
# accounts account registration and authentication
|
||||||
# channels channel creation and operations
|
# channels channel creation and operations
|
||||||
# commands command calling and operations
|
|
||||||
# opers oper actions, authentication, etc
|
# opers oper actions, authentication, etc
|
||||||
# services actions related to NickServ, ChanServ, etc.
|
# services actions related to NickServ, ChanServ, etc.
|
||||||
# internal unexpected runtime behavior, including potential bugs
|
# internal unexpected runtime behavior, including potential bugs
|
||||||
|
@ -1675,10 +1675,14 @@ func (session *Session) SendRawMessage(message ircmsg.IrcMessage, blocking bool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if blocking {
|
if blocking {
|
||||||
return session.socket.BlockingWrite(line)
|
err = session.socket.BlockingWrite(line)
|
||||||
} else {
|
} 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.
|
// Send sends an IRC line to the client.
|
||||||
|
Loading…
Reference in New Issue
Block a user