diff --git a/irc.go b/irc.go index 0d9e83a..8d11e55 100644 --- a/irc.go +++ b/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) } diff --git a/irc_struct.go b/irc_struct.go index 38eeca8..3e51bb8 100644 --- a/irc_struct.go +++ b/irc_struct.go @@ -17,6 +17,7 @@ type Connection struct { sync.WaitGroup Debug bool Error chan error + WebIRC string Password string UseTLS bool UseSASL bool