my ( $self, $c, $order ) = @_;
my $dbh = $c->model;
+ $order //= 'total_points';
if ($order ~~ /^((?:defense|attack|total|humor|scan|raid)_points)$/
|| $order ~~ /^(defprio)$/){
$order = "$1 DESC";
my ( $self, $c, $order ) = @_;
my $dbh = $c->model;
+ $order //= 'score';
if ($order ~~ /^(scre|value|xp|size|race)$/){
$order = "$1rank";
}else{
}
}
+ my ($coords,$tick) = $c->model->selectrow_array(q{
+SELECT coords(x,y,z), tick() FROM current_planet_stats WHERE pid = $1
+ }, undef, $c->user->planet);
+
+ $c->req->param(message => "[i]Posted by $coords at tick $tick [/i]\n\n" . $c->req->param('message'));
$c->forward('/forum/insertThread',[12]);
$c->forward('/forum/insertPost',[$c->stash->{thread}]);
$c->flash(intelmessage => 1);