Merge pull request #96 from qaisjp/feature/webirc

Add WebIRC field
This commit is contained in:
Thomas Jager 2018-04-09 15:01:47 +02:00 committed by GitHub
commit 5063e5f260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

5
irc.go
View File

@ -473,6 +473,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

@ -17,6 +17,7 @@ type Connection struct {
sync.WaitGroup
Debug bool
Error chan error
WebIRC string
Password string
UseTLS bool
UseSASL bool