From 0daf3244cb3fa7ebb1270b337b39f33193b363b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Thu, 20 Apr 2017 02:05:56 +0200 Subject: [PATCH] Log outgoing messages --- server/websocket_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/websocket_handler.go b/server/websocket_handler.go index 016c7c68..d1720b5c 100644 --- a/server/websocket_handler.go +++ b/server/websocket_handler.go @@ -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) } }