nickvanw / ircx

Basic callback-driven Go IRC bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot set tlsConfig in external configFunc

mvdan opened this issue · comments

I just tried using a modified version of this:

    configFunc := func(b *Bot) {
        b.Server = server
        b.OriginalName = name
        b.User = name
        b.tlsConfig = tlsConfig
    }

It fails to compile because tlsConfig is not exported. Any reason why that is so?

Fixed by #9