$chan returns $null in a query. You should specify the channel where you want to op/voice the person. Also you need to put a check if you are an op/voice in the channel.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.