I'm trying my hand at mIRC scripting, I can make this work..

on *:join:#channel: { if ($nick == person) { .mode $chan +h $nick } }

but not

on *:join:#D&D: { if ($nick == person) { .mode $chan +h $nick } }

I've narrowed it down to the & in the D&D part. What's going on, and how do I fix it?

And is there perchance a way to check if the nick's registered before I do that, maybe a way to compare the host somehow?

Thanks