Your mode change works in the connect event? You aren't in the room yet. You may want to put the mode command in a join event.

on me:*:join:#:mode # +abc123