is_on_channel

Name

is_on_channel -- Checks if a user is on a given channel

Synopsis

bool is_on_channel(string channel [, string nickname ]);

Description

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

Example 3-1. Making the bot join a channel if not on it

if (!$this->is_on_channel("#wollabot")) $this->join("#wollabot");