I like to check if there is a certain $Nick or $address present in the channel's user list second I like to also check if there are any OPS available in the room and send them (OPS) a private msg. How can I do that

Thanks

sahmed01