commit
5063e5f260
5
irc.go
5
irc.go
@ -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)
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ type Connection struct {
|
||||
sync.WaitGroup
|
||||
Debug bool
|
||||
Error chan error
|
||||
WebIRC string
|
||||
Password string
|
||||
UseTLS bool
|
||||
UseSASL bool
|
||||
|
Loading…
Reference in New Issue
Block a user