player1 have joined normal channel #alias /cc #alias & #alias and has it as active/primary channel.
player1 disconnects.
player2 creates channels #target and makes #alias point to it /cc #target & /channel-alias #alias #target.
player1 joins.
player2 sends message to #target #target Hello there. (or probably even if he sends to #alias Hello there.).
player1 should receive message but actually wont receive anything.
Not 100% sure but I think this is what will happen. Simplest fix is to use beerchat.register_callback('after_joinplayer', function(player) ... end and switch actual player channel there.
It would also be possible to check every incoming message for individual recipients but it wouldn't be as clean and would require both additional lookup tables and more careful event handler ordering (more likely to break in future).
/cc #alias
&#alias
and has it as active/primary channel./cc #target
&/channel-alias #alias #target
.#target Hello there.
(or probably even if he sends to#alias Hello there.
).Not 100% sure but I think this is what will happen. Simplest fix is to use
beerchat.register_callback('after_joinplayer', function(player) ... end
and switch actual player channel there.It would also be possible to check every incoming message for individual recipients but it wouldn't be as clean and would require both additional lookup tables and more careful event handler ordering (more likely to break in future).