Add WebIRC field

This commit is contained in:
Qais Patankar 2017-08-18 16:56:08 +01:00
parent 1b0acb5f2f
commit c359ee2670
2 changed files with 6 additions and 0 deletions

5
irc.go
View File

@ -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)
}

View File

@ -23,6 +23,7 @@ type Connection struct {
SASLLogin string
SASLPassword string
SASLMech string
WebIRC string
TLSConfig *tls.Config
Version string
Timeout time.Duration