mirror of
https://github.com/fluffle/goirc
synced 2025-06-17 03:56:42 +00:00
Minor rearrangements.
This commit is contained in:
parent
b1242aa351
commit
39882dafd4
1 changed files with 3 additions and 4 deletions
|
@ -73,11 +73,10 @@ 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]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue