topic

Name

topic -- Sets the topic for a given channel

Synopsis

void topic(string channel, string topic);

Description

On IRC the topic is used to display static information to the users. It can be set using topic which uses to parameters. channel is the channel in prospect and topic is the new topic to be set.

Example 3-1. Setting the topic

$this->topic("#wollabot", "Welcome to #wollabot - enjoy your stay!");