Skip to content

Commit

Permalink
Merge pull request #96 from qaisjp/feature/webirc
Browse files Browse the repository at this point in the history
Add WebIRC field
  • Loading branch information
thoj authored Apr 9, 2018
2 parents db5bd17 + 81cb5e9 commit 5063e5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions irc_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Connection struct {
sync.WaitGroup
Debug bool
Error chan error
WebIRC string
Password string
UseTLS bool
UseSASL bool
Expand Down

0 comments on commit 5063e5f

Please sign in to comment.