|
@@ -146,35 +146,35 @@ type IRCWrite struct {
|
|
|
}
|
|
|
|
|
|
type IRCConfig struct {
|
|
|
- Port int `json:"Port"`
|
|
|
- Hostname string `json:"Hostname"`
|
|
|
- UseTLS bool `json:"UseTLS"`
|
|
|
- UseSASL bool `json:"UseSASL"`
|
|
|
- Insecure bool `json:"Insecure"`
|
|
|
- Nick string `json:"Nick"`
|
|
|
- Username string `json:"Username"`
|
|
|
- Realname string `json:"Realname"`
|
|
|
- Password string `json:"Password"`
|
|
|
- ServerPassword string `json:"ServerPassword"`
|
|
|
- AutoJoin []string `json:"AutoJoin"`
|
|
|
- RejoinDelay int `json:"RejoinDelay"`
|
|
|
- Version string `json:"Version"`
|
|
|
- Flood_Num int `json:"FloodNum"`
|
|
|
- Flood_Time int `json:"FloodTime"`
|
|
|
- Flood_Delay int `json:"FloodDelay"`
|
|
|
- Debug_Output bool `json:"Debug"`
|
|
|
- MyNick string
|
|
|
- OnExit func()
|
|
|
- Socket net.Conn
|
|
|
- Reader *bufio.Reader
|
|
|
- ReadChannel chan IRCMsg
|
|
|
- ReadEvents []string
|
|
|
- WriteChannel chan IRCWrite
|
|
|
- DelChannel chan string
|
|
|
- Registered bool
|
|
|
- ISupport map[string]string
|
|
|
- wg sync.WaitGroup
|
|
|
- Mutex sync.Mutex
|
|
|
+ Port int `json:"Port"`
|
|
|
+ Hostname string `json:"Hostname"`
|
|
|
+ UseTLS bool `json:"UseTLS"`
|
|
|
+ UseSASL bool `json:"UseSASL"`
|
|
|
+ Insecure bool `json:"Insecure"`
|
|
|
+ Nick string `json:"Nick"`
|
|
|
+ Username string `json:"Username"`
|
|
|
+ Realname string `json:"Realname"`
|
|
|
+ Password string `json:"Password"`
|
|
|
+ ServerPassword string `json:"ServerPassword"`
|
|
|
+ AutoJoin []string `json:"AutoJoin"`
|
|
|
+ RejoinDelay int `json:"RejoinDelay"`
|
|
|
+ Version string `json:"Version"`
|
|
|
+ Flood_Num int `json:"FloodNum"`
|
|
|
+ Flood_Time int `json:"FloodTime"`
|
|
|
+ Flood_Delay int `json:"FloodDelay"`
|
|
|
+ Debug_Output bool `json:"Debug"`
|
|
|
+ MyNick string `json:"-"`
|
|
|
+ OnExit func() `json:"-"`
|
|
|
+ Socket net.Conn `json:"-"`
|
|
|
+ Reader *bufio.Reader `json:"-"`
|
|
|
+ ReadChannel chan IRCMsg `json:"-"`
|
|
|
+ ReadEvents []string `json:"-"`
|
|
|
+ WriteChannel chan IRCWrite `json:"-"`
|
|
|
+ DelChannel chan string `json:"-"`
|
|
|
+ Registered bool `json:"-"`
|
|
|
+ ISupport map[string]string `json:"-"`
|
|
|
+ wg sync.WaitGroup `json:"-"`
|
|
|
+ Mutex sync.Mutex `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (Config *IRCConfig) GetNick() string {
|