diff --git a/spongy/network.go b/spongy/network.go index 8479d92..ae17462 100644 --- a/spongy/network.go +++ b/spongy/network.go @@ -259,6 +259,7 @@ func (nw *Network) Connect(){ go nw.ServerWriteLoop() go nw.MessageDispatch() + go nw.WatchOutqDirectory() nw.login() diff --git a/spongy/network_test.go b/spongy/network_test.go index 22a6590..a0ce822 100644 --- a/spongy/network_test.go +++ b/spongy/network_test.go @@ -77,6 +77,9 @@ func TestConnect(t *testing.T) { expect(t, current, " 001 ") expect(t, current, " JOIN " + n.Nick + " #SpongyTest") + ioutil.WriteFile(path.Join(base, "outq", "merf"), []byte("PART #SpongyTest\n"), os.ModePerm) + expect(t, current, " PART ") + n.Close() return }