kiwiirc / irc-framework

🛠️ A better IRC framework for node.js. For bots and full clients.
MIT License
182 stars 65 forks source link

Do not crash on invalid BATCH commands #229

Closed xPaw closed 4 years ago

xPaw commented 4 years ago

Fixes this crash that happened on a server that sent a misformatted batch command: https://pastebin.com/6SbWUyk1

I also changed batch tag to use hasCache because just calling cache creates a new cache, and it would never be false.