aboutsummaryrefslogtreecommitdiff
path: root/internal/unsorted/server.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-06 02:22:04 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-06 02:22:04 +0800
commit58020245d7ba75f8d138f7041cd0c0103a319392 (patch)
treefcf6ee5f0f43bed4a3a789441cb64aa6f6de50e7 /internal/unsorted/server.go
parentAdd BDS, GPL, and MIT licenses (diff)
downloadforge-58020245d7ba75f8d138f7041cd0c0103a319392.tar.gz
forge-58020245d7ba75f8d138f7041cd0c0103a319392.tar.zst
forge-58020245d7ba75f8d138f7041cd0c0103a319392.zip
Fix missing initialization of globalData and ircBotv0.1.29
Diffstat (limited to 'internal/unsorted/server.go')
-rw-r--r--internal/unsorted/server.go5
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()