Try this instead
on me:*:join:#:{
if (o isin $usermode) { .timer 1 2 opmode $chan +o $me }
}
I'm not familiar with the opmode command, so I'm presuming that it's a server level command that allows an IRCop to op themselves in a channel.
I think the reason yours wasn't working is the extra
in the IF statement (2nd one in your code)