Skip to content

Commit

Permalink
Irc Config and Print hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
HotaruBlaze committed Jul 1, 2020
1 parent aa8c888 commit d58b09f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down
2 changes: 1 addition & 1 deletion src/irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit d58b09f

Please sign in to comment.