Add WebIRC field
This commit is contained in:
parent
1b0acb5f2f
commit
c359ee2670
5
irc.go
5
irc.go
@ -426,6 +426,11 @@ func (irc *Connection) Connect(server string) error {
|
||||
go irc.readLoop()
|
||||
go irc.writeLoop()
|
||||
go irc.pingLoop()
|
||||
|
||||
if len(irc.WebIRC) > 0 {
|
||||
irc.pwrite <- fmt.Sprintf("WEBIRC %s\r\n", irc.WebIRC)
|
||||
}
|
||||
|
||||
if len(irc.Password) > 0 {
|
||||
irc.pwrite <- fmt.Sprintf("PASS %s\r\n", irc.Password)
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ type Connection struct {
|
||||
SASLLogin string
|
||||
SASLPassword string
|
||||
SASLMech string
|
||||
WebIRC string
|
||||
TLSConfig *tls.Config
|
||||
Version string
|
||||
Timeout time.Duration
|
||||
|
Loading…
Reference in New Issue
Block a user