From 81c860a061ac6bc239fd9cfd6f5cf7299584f088 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 21 Jun 2020 14:21:23 +0000 Subject: Use nick/realname from config Use the nick/realname config options advertised by the README. --- cmd/irc/main.go | 6 +++--- config.go | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/irc/main.go b/cmd/irc/main.go index e8aaaa9..598c015 100644 --- a/cmd/irc/main.go +++ b/cmd/irc/main.go @@ -42,9 +42,9 @@ func main() { } s, err := irc.NewSession(conn, irc.SessionParams{ - Nickname: "ME", - Username: "MEMEMEMEMEM", - RealName: "Le me", + Nickname: cfg.Nick, + Username: cfg.Nick, + RealName: cfg.Real, Auth: &irc.SASLPlain{Username: cfg.User, Password: cfg.Password}, }) if err != nil { diff --git a/config.go b/config.go index 8736f1d..0634dfc 100644 --- a/config.go +++ b/config.go @@ -7,6 +7,8 @@ import ( type Config struct { Addr string + Nick string + Real string User string Password string } -- cgit v1.2.3