Closed Fryguy closed 8 years ago
That we shouldn't crash on bogus input aside, that input there is indeed malformed and a bug in Gitter.
OK, thanks, I'll send a bug report over to them.
Can you put a link to the bug report? If they actually have something like that publicly available.
This is now fixed via https://github.com/gitterHQ/irc-bridge/pull/54
I am writing a chat bot for gitter.im using their IRC bridge (irc.gitter.im). I get the following error when I connect:
What I am seeing is that after the
/NAMES
is sent, the users list is processed. A normal user looks like this:However, the failure occurs when processing the "Gitter Bot" user (not my bot...this is Gitter's own internal bot account), whose line looks like this:
Notice the
:
beforeirc.gitter.im
in the middle of the string. This causes the Message#parse_params regex to not properly match. See below for the differences in the values of raw_params after that Regex match.So, I clearly see why it blows up, but I have no idea how to fix it properly. Is this a bug on Gitter's side, or is this a bug in cinch in how it parses the output?