is_voice

Name

is_voice -- Check if a user is voice on a given channel

Synopsis

bool is_voice(string channel [, string target ]);

Description

is_voice provides a way of checking if a given user has voice on a given channel. If no user is specified the bot itself is used.

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

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