diff options
author | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-08-07 16:32:17 -0700 |
---|---|---|
committer | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-08-07 16:32:17 -0700 |
commit | 067633a608a7567168cadf96e1bd1d5907931430 (patch) | |
tree | 5f5aa82a08153ea5d35981cc209ec4d191a96a95 /plugins/Irc/ChannelResponseChannel.php | |
parent | a9d9e077ba5ddc516836f00e667fc92235bed48d (diff) |
Added more commenting
Diffstat (limited to 'plugins/Irc/ChannelResponseChannel.php')
-rw-r--r-- | plugins/Irc/ChannelResponseChannel.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Irc/ChannelResponseChannel.php b/plugins/Irc/ChannelResponseChannel.php index 580a3c12d..d29a1da02 100644 --- a/plugins/Irc/ChannelResponseChannel.php +++ b/plugins/Irc/ChannelResponseChannel.php @@ -35,11 +35,25 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { class ChannelResponseChannel extends IMChannel {
protected $ircChannel;
+ /**
+ * Construct a ChannelResponseChannel
+ *
+ * @param IMplugin $imPlugin IMPlugin
+ * @param string $ircChannel IRC Channel to reply to
+ * @return ChannelResponseChannel
+ */
public function __construct($imPlugin, $ircChannel) {
$this->ircChannel = $ircChannel;
parent::__construct($imPlugin);
}
+ /**
+ * Send a message using the plugin
+ *
+ * @param User $user User
+ * @param string $text Message text
+ * @return void
+ */
public function output($user, $text) {
$text = $user->nickname.': ['.common_config('site', 'name') . '] ' . $text;
$this->imPlugin->send_message($this->ircChannel, $text);
|