Handling outq files now

This commit is contained in:
Neale Pickett 2015-02-11 13:40:53 -07:00
parent e64bbb6aa2
commit 2aee3e1b31
2 changed files with 4 additions and 0 deletions

View File

@ -259,6 +259,7 @@ func (nw *Network) Connect(){
go nw.ServerWriteLoop()
go nw.MessageDispatch()
go nw.WatchOutqDirectory()
nw.login()

View File

@ -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
}