summaryrefslogtreecommitdiff
path: root/lib/command.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-11 11:29:51 -0500
committerEvan Prodromou <evan@status.net>2009-12-11 11:29:51 -0500
commit79f81ad76d413908c097c121912eff233aebc483 (patch)
treeef94cd25d824b90a8b3b46c2b0c9b76d1ca7153a /lib/command.php
parent85473ecf94e92cd0e6503e4d27ea26452076aafd (diff)
change Notice::saveNew() to use named arguments for little-used options
Diffstat (limited to 'lib/command.php')
-rw-r--r--lib/command.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/command.php b/lib/command.php
index 450db9da3..085331f82 100644
--- a/lib/command.php
+++ b/lib/command.php
@@ -433,8 +433,9 @@ class ReplyCommand extends Command
return;
}
- $notice = Notice::saveNew($this->user->id, $this->text, $channel->source(), 1,
- $notice->id);
+ $notice = Notice::saveNew($this->user->id, $this->text, $channel->source(),
+ array('reply_to' => $notice->id));
+
if ($notice) {
$channel->output($this->user, sprintf(_('Reply to %s sent'), $recipient->nickname));
} else {