var $user = null;
- function __construct($user=null) {
+ function __construct($user=null)
+ {
$this->user = $user;
}
- function execute($channel) {
+ function execute($channel)
+ {
return false;
}
}
class UnimplementedCommand extends Command {
- function execute($channel) {
+ function execute($channel)
+ {
$channel->error($this->user, _("Sorry, this command is not yet implemented."));
}
}
class TrackCommand extends UnimplementedCommand {
var $word = null;
- function __construct($user, $word) {
+ function __construct($user, $word)
+ {
parent::__construct($user);
$this->word = $word;
}
class UntrackCommand extends UnimplementedCommand {
var $word = null;
- function __construct($user, $word) {
+ function __construct($user, $word)
+ {
parent::__construct($user);
$this->word = $word;
}
class NudgeCommand extends UnimplementedCommand {
var $other = null;
- function __construct($user, $other) {
+ function __construct($user, $other)
+ {
parent::__construct($user);
$this->other = $other;
}
class InviteCommand extends UnimplementedCommand {
var $other = null;
- function __construct($user, $other) {
+ function __construct($user, $other)
+ {
parent::__construct($user);
$this->other = $other;
}
}
class StatsCommand extends Command {
- function execute($channel) {
+ function execute($channel)
+ {
$subs = new Subscription();
$subs->subscriber = $this->user->id;
var $other = null;
- function __construct($user, $other) {
+ function __construct($user, $other)
+ {
parent::__construct($user);
$this->other = $other;
}
- function execute($channel) {
+ function execute($channel)
+ {
$recipient =
common_relative_profile($this->user, common_canonical_nickname($this->other));
class WhoisCommand extends Command {
var $other = null;
- function __construct($user, $other) {
+ function __construct($user, $other)
+ {
parent::__construct($user);
$this->other = $other;
}
- function execute($channel) {
+ function execute($channel)
+ {
$recipient =
common_relative_profile($this->user, common_canonical_nickname($this->other));
class MessageCommand extends Command {
var $other = null;
var $text = null;
- function __construct($user, $other, $text) {
+ function __construct($user, $other, $text)
+ {
parent::__construct($user);
$this->other = $other;
$this->text = $text;
}
- function execute($channel) {
+ function execute($channel)
+ {
$other = User::staticGet('nickname', common_canonical_nickname($this->other));
$len = mb_strlen($this->text);
if ($len == 0) {
var $other = null;
- function __construct($user, $other) {
+ function __construct($user, $other)
+ {
parent::__construct($user);
$this->other = $other;
}
- function execute($channel) {
+ function execute($channel)
+ {
$target_nickname = common_canonical_nickname($this->other);
$target =
var $other = null;
- function __construct($user, $other) {
+ function __construct($user, $other)
+ {
parent::__construct($user);
$this->other = $other;
}
- function execute($channel) {
+ function execute($channel)
+ {
if (!$this->other) {
$channel->error($this->user, _('Specify the name of the user to subscribe to'));
var $other = null;
- function __construct($user, $other) {
+ function __construct($user, $other)
+ {
parent::__construct($user);
$this->other = $other;
}
- function execute($channel) {
+ function execute($channel)
+ {
if(!$this->other) {
$channel->error($this->user, _('Specify the name of the user to unsubscribe from'));
return;
class OffCommand extends Command {
var $other = null;
- function __construct($user, $other=null) {
+ function __construct($user, $other=null)
+ {
parent::__construct($user);
$this->other = $other;
}
- function execute($channel) {
+ function execute($channel)
+ {
if ($other) {
$channel->error($this->user, _("Command not yet implemented."));
} else {
class OnCommand extends Command {
var $other = null;
- function __construct($user, $other=null) {
+ function __construct($user, $other=null)
+ {
parent::__construct($user);
$this->other = $other;
}
- function execute($channel) {
+ function execute($channel)
+ {
if ($other) {
$channel->error($this->user, _("Command not yet implemented."));
} else {
}
class HelpCommand extends Command {
- function execute($channel) {
+ function execute($channel)
+ {
$channel->output($this->user,
_("Commands:\n".
"on - turn on notifications\n".