Skip to content

Commit

Permalink
Honor user and name from config
Browse files Browse the repository at this point in the history
  • Loading branch information
godwhoa committed Feb 3, 2018
1 parent 0c6f7a0 commit b39917a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func (bot *Bot) Start() error {
Server: bot.config.Server,
Port: bot.config.Port,
Nick: bot.config.Nick,
User: bot.config.Nick + "_user",
Name: bot.config.Nick + "_name",
User: bot.config.User,
Name: bot.config.Name,
RecoverFunc: func(_ *girc.Client, e *girc.HandlerError) { bot.log.Errorln(e.Error()) },
}
if bot.config.SASLUser != "" && bot.config.SASLPass != "" {
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IRC
nick = "oodle-devvvv"
nick = "oodle-dev"
name = "oodle-dev"
user = "oodle-dev"
sasl_user = ""
Expand Down
2 changes: 2 additions & 0 deletions oodle/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package oodle

type Config struct {
Nick string `toml:"nick"`
Name string `toml:"name"`
User string `toml:"user"`
Server string `toml:"server"`
Port int `toml:"port"`
Channel string `toml:"channel"`
Expand Down

0 comments on commit b39917a

Please sign in to comment.