From 9c05c5ef0d3944854f49d84d8587fbab4eb396a6 Mon Sep 17 00:00:00 2001 From: "J.P. Neverwas" Date: Fri, 1 Oct 2021 22:20:24 -0700 Subject: [PATCH] Set real name correctly Also add optional irc.user field, which defaults to nick. --- irc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/irc.go b/irc.go index 0f0e5da..71b5342 100644 --- a/irc.go +++ b/irc.go @@ -10,7 +10,9 @@ import ( ) func (i *IRCCat) connectIRC(debug bool) error { - irccon := irc.IRC(viper.GetString("irc.nick"), viper.GetString("irc.realname")) + viper.SetDefault("irc.user", viper.GetString("irc.nick")) + irccon := irc.IRC(viper.GetString("irc.nick"), viper.GetString("irc.user")) + irccon.RealName = viper.GetString("irc.realname") i.irc = irccon irccon.Debug = debug