From d58b09fb5b7ba8dc20f3a0b890428eade891bdd2 Mon Sep 17 00:00:00 2001 From: Phoenix Date: Wed, 1 Jul 2020 22:08:30 +0100 Subject: [PATCH] Irc Config and Print hotfix --- src/config.go | 7 +++++++ src/irc.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/config.go b/src/config.go index c12163d..d858ab2 100755 --- a/src/config.go +++ b/src/config.go @@ -19,6 +19,13 @@ func LoadConfig() (ConfigLoaded bool) { viper.SetDefault("debug", false) viper.SetDefault("enable_ServerOutput", true) viper.SetDefault("commandPrefix", "!") + + viper.SetDefault("irc.server", "") + viper.SetDefault("irc.port", "") + viper.SetDefault("irc.nick", "") + viper.SetDefault("irc.channel", "") + viper.SetDefault("irc.pass", "") + // viper.SetDefault("enableCommands", true) viper.SetDefault("discord.token", "") viper.SetDefault("discord.serverChat", "") diff --git a/src/irc.go b/src/irc.go index 1ec648a..b9f73cd 100755 --- a/src/irc.go +++ b/src/irc.go @@ -24,7 +24,7 @@ func InitIRC() { Irccon.Debug = false Irccon.UseTLS = false Irccon.AddCallback("001", func(e *irc.Event) { - log.Infoln("[IRC] Connected to", IrcServer+":"+IrcServer, "as", IrcNick) + log.Infoln("[IRC] Connected to", IrcServer+":"+IrcPort, "as", IrcNick) Irccon.Join(Channel) log.Infoln("[IRC] Joined channel", Channel) })