I'm writing a simple socket bot, and I need the socket script to determine if the socket bot is a channel op on the channel, and if it is, set the topic and channel modes.

How do I determine if the bot is indeed an op?