Explorar el Código

Merge pull request #24 from jpneverwas/realname

Set real name correctly
tags/v0.4.6
Russ Garrett hace 2 años
padre
commit
aecc317a9f
No account linked to committer's email address
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      irc.go

+ 3
- 1
irc.go Ver fichero

@@ -10,7 +10,9 @@ import (
10 10
 )
11 11
 
12 12
 func (i *IRCCat) connectIRC(debug bool) error {
13
-	irccon := irc.IRC(viper.GetString("irc.nick"), viper.GetString("irc.realname"))
13
+	viper.SetDefault("irc.user", viper.GetString("irc.nick"))
14
+	irccon := irc.IRC(viper.GetString("irc.nick"), viper.GetString("irc.user"))
15
+	irccon.RealName = viper.GetString("irc.realname")
14 16
 	i.irc = irccon
15 17
 
16 18
 	irccon.Debug = debug

Loading…
Cancelar
Guardar