is_op

Name

is_op -- Check if a user is op on a given channel

Synopsis

bool is_op(string channel [, string user ]);

Description

is_op provides a way of checking if a given user is op on a given channel. If no user is specified the bot itself is used.

Example 3-1. Ask for ops if the bot doesn't have

if (!$this->is_op("#wollabot")) $this->send_privmsg("razor", "Please op me");