I figured this would be hard to reproduce.
Basically once raw 321 (Channel :Users Name) is received it opens the /LIST window.
Sending raw 321 to myself resulted in this, but the window couldn't be closed.
The only way to close it was to receive a raw 323 (:End of /LIST) reply.
That said, getting raw 321 on top of 321 also results in being unable to delete the .txt file, even after getting a 323 reply and closing the window.
on *:socklisten:test:{ sockaccept testSock }
on *:sockread:testSock:{
var %test = $null
sockread %test
}
* /socklisten test 6667
* Connect to localhost 6667
* //sockwrite -nt testSock :fake.name 001 $mnick :Welcome to the localhost Network, $mnick
* //sockwrite -nt testSock :fake.name 321 $mnick Channel :Users Name
* Disconnect, 321 upon 321, etc.
* To close the window, you'll need to do this when connected: //sockwrite -nt testSock :fake.name 323 $mnick :End of /LIST