Today I just felt like writing an IRC-bot in Javascript with NodeJS. Everything works just fine, but it is bottlenecking somewhere.
For example, when I type a command several times it answers me immediately at first, but then starts to queue up and take longer and longer to respond.
Here's my code http://kl1p.com/ONyw
Not seeing anything apparently wrong with your code.
Try debugging it by commenting out parts of it, if at some point you don't see the slowing down you know that commented portion is responsible.
Archaic, but works every time :)
I totally forgot about this post. That's what coding drunk does to you!
Anyway, I solved it. It was as caf said, server-side ratelimiting. My local ircd was setup wrong. Working like a charm when it's running in a live environment.