diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-06 02:22:04 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-06 02:22:04 +0800 |
commit | 58020245d7ba75f8d138f7041cd0c0103a319392 (patch) | |
tree | fcf6ee5f0f43bed4a3a789441cb64aa6f6de50e7 /internal/unsorted/server.go | |
parent | Add BDS, GPL, and MIT licenses (diff) | |
download | forge-56c95ab0e8897f97c884bda7eff4e6d467417488.tar.gz forge-56c95ab0e8897f97c884bda7eff4e6d467417488.tar.zst forge-56c95ab0e8897f97c884bda7eff4e6d467417488.zip |
Fix missing initialization of globalData and ircBotv0.1.29
Diffstat (limited to 'internal/unsorted/server.go')
-rw-r--r-- | internal/unsorted/server.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/unsorted/server.go b/internal/unsorted/server.go index 12da5cb..29b0fab 100644 --- a/internal/unsorted/server.go +++ b/internal/unsorted/server.go @@ -51,7 +51,9 @@ type Server struct { } func NewServer(configPath string) (*Server, error) { - s := &Server{} + s := &Server{ + globalData: make(map[string]any), + } //exhaustruct:ignore if err := s.loadConfig(configPath); err != nil { return s, err @@ -208,6 +210,7 @@ func (s *Server) Run() error { }() } + s.ircBot = irc.NewBot(&s.config.IRC) // IRC bot go s.ircBot.ConnectLoop() |