on @*:join:#:{
if $istok(nick1 nick2 nick3 nick4,$nick,32) {
.mode +h $nick
}
}
Please note that this is not the most secure way of doing this.
If you are an op on the channel and the network has Anope services (specifically chanserv), then I recommend you use /msg chanserv hop <#channel> add <nick>
Replace <#channel> and <nick> with the appropriate information.