Nope, you can't use that with sockets. You need to parse the raw server data to determine if the bot is a channel op, but I'm not sure on what to parse, etc.