gf3 / Jerk

Stupidly simple IRC bots in Javascript.
http://gf3.github.com/Jerk
The Unlicense
106 stars 17 forks source link

Multi-line messages out of order #13

Closed broofa closed 13 years ago

broofa commented 13 years ago

When I send a multiline message (i.e. a message with \n's separating lines of text), the messages often appear out of order in IRC.

Is this an issue with IRC in general, or something specific to Jerk or irc.js?

gf3 commented 13 years ago

Hmm, sounds like it might be an issue with the flood protection in IRC-js. Is it just the first line that is out of order?

broofa commented 13 years ago

It's more than just the first line. E.g. if I do message.say(['a', 'b', 'c', d'].join('\n')), what I see in IRC is ... a d c b

This looks like it's a jerk/irc.js issue, btw. The [SENT] log messages on the command line show the messages are being sent out of order.

gf3 commented 13 years ago

Ahhhh, it's sending the first message immediately and then queueing the rest, but it is going through the queue backwards. This is fixed and live in 1.1.4.

broofa commented 13 years ago

Awesome. Thanks for the quick response, and for a nifty module - 'been having a lot of fun with it!

gf3 commented 13 years ago

No problem, so glad to hear you're having fun with it! Take care.