Log outgoing messages

This commit is contained in:
Ken-Håvard Lieng 2017-04-20 02:05:56 +02:00
parent eedc687f18
commit 0daf3244cb

View File

@ -178,6 +178,7 @@ func (h *wsHandler) message(b []byte) {
if i, ok := h.session.getIRC(data.Server); ok {
i.Privmsg(data.To, data.Content)
go h.session.user.LogMessage(data.Server, i.GetNick(), data.To, data.Content)
}
}