Closed halkeye closed 4 years ago
Perhaps the mode
event shouldn't be emitted? Because raw_mode will be undefined instead of being an empty string.
do you mean irc-framework shouldn't emit a mode event? or that the server is broken for even sending it?
I meant irc-fw (probably channel info
event too?)
I think the server isn't up to the spec by sending an empty mode though.
oh! i totally see why your concerned - https://github.com/thelounge/thelounge/compare/30595ed23f56%5E...813b49d7b14c
the join would break then.
It won't break in lounge, it will just print undefined
there instead of an empty string. raw_params
will be an empty array as expected.
When I tried to join a irslackd (https://github.com/adsr/irslackd) server, thelounge crashed
I've added debugging to the server, looks like its not sending any flags after mode
I think mode should be populated but empty with based on https://tools.ietf.org/html/rfc1459#section-4.2.3.1 but I figure not crashing is a good plan