Skip to content

Commit

Permalink
Set real name correctly
Browse files Browse the repository at this point in the history
Also add optional irc.user field, which defaults to nick.
  • Loading branch information
jpneverwas committed Oct 7, 2021
1 parent 17451e7 commit 9c05c5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c05c5e

Please sign in to comment.