From 3680facb1d8c411a01ed698feab1e8315ff7093a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 5 Apr 2020 15:24:57 +0200 Subject: [PATCH] Use Network.GetName for logs path --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index 43b3eda..3b4fd54 100644 --- a/logger.go +++ b/logger.go @@ -44,7 +44,7 @@ func (ml *messageLogger) Append(msg *irc.Message) error { } // TODO: handle/forbid network/entity names with illegal path characters - dir := filepath.Join(ml.conn.srv.LogPath, ml.conn.user.Username, ml.conn.network.Name, ml.entity) + dir := filepath.Join(ml.conn.srv.LogPath, ml.conn.user.Username, ml.conn.network.GetName(), ml.entity) if err := os.MkdirAll(dir, 0700); err != nil { return fmt.Errorf("failed to create logs directory %q: %v", dir, err) }