From 39882dafd49e060723668fde6309af02801444f1 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sun, 17 Feb 2013 23:55:39 +0000 Subject: [PATCH] Minor rearrangements. --- client/connection.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/connection.go b/client/connection.go index 7d18bec..9fa2998 100644 --- a/client/connection.go +++ b/client/connection.go @@ -73,17 +73,16 @@ type Config struct { func NewConfig(nick string, args ...string) *Config { ident := "goirc" - name := "Powered by GoIRC" - if len(args) > 0 && args[0] != "" { ident = args[0] } + name := "Powered by GoIRC" if len(args) > 1 && args[1] != "" { name = args[1] } cfg := &Config{ - PingFreq: 3 * time.Minute, - NewNick: func(s string) string { return s + "_" }, + PingFreq: 3 * time.Minute, + NewNick: func(s string) string { return s + "_" }, } cfg.Me = state.NewNick(nick) cfg.Me.Ident = ident