|
@@ -44,23 +44,23 @@ 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`
|
|
|
+ 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
|