ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/commands.ext
(Generate patch)

Comparing deliantra/server/ext/commands.ext (file contents):
Revision 1.16 by root, Thu Jan 11 01:06:02 2007 UTC vs.
Revision 1.17 by root, Sat Jan 13 23:06:13 2007 UTC

68 "* " . $ob->name . "/" . $ob->level . " " . (length $pl->own_title ? $pl->own_title : "the " . $pl->title) 68 "* " . $ob->name . "/" . $ob->level . " " . (length $pl->own_title ? $pl->own_title : "the " . $pl->title)
69 . ($pl->peaceful ? " [peaceful]" : " [HOSTILE]") 69 . ($pl->peaceful ? " [peaceful]" : " [HOSTILE]")
70 . ($ns->afk ? " [AFK]" : "") 70 . ($ns->afk ? " [AFK]" : "")
71 . ($ob->flag (cf::FLAG_WIZ) ? " [WIZ]" : "") 71 . ($ob->flag (cf::FLAG_WIZ) ? " [WIZ]" : "")
72 . " [" . $pl->ns->version . "]" 72 . " [" . $pl->ns->version . "]"
73 . " [" . ($pl->peaceful || $privileged ? $ob->map->{path}->visible_name : $ob->map->region ? $ob->map->region->name : "the unknown") . "]" 73 . " [" . ($pl->peaceful || $privileged ? $ob->map->visible_name : $ob->map->region ? $ob->map->region->name : "the unknown") . "]"
74 . (sprintf " [rtt %.3fs]", $pl->ns->rtt * 1e-6) 74 . (sprintf " [rtt %.3fs]", $pl->ns->rtt * 1e-6)
75 . ($privileged ? " " . $pl->ns->host : "") 75 . ($privileged ? " " . $pl->ns->host : "")
76 } sort { (lc $a->ob->name) cmp (lc $b->ob->name) } @pl 76 } sort { (lc $a->ob->name) cmp (lc $b->ob->name) } @pl
77 ), 77 ),
78 eval { "* IRC: " . join ", ", ext::schmorp_irc::users }, 78 eval { "* IRC: " . join ", ", ext::schmorp_irc::users },
143 for (sort keys %cf::MAP) { 143 for (sort keys %cf::MAP) {
144 my $map = $cf::MAP{$_} 144 my $map = $cf::MAP{$_}
145 or next; 145 or next;
146 146
147 next unless $map->path =~ $arg; 147 next unless $map->path =~ $arg;
148 next if $map->{path}->is_style_map; 148 next if $map->{deny_list};
149 149
150 my $svd = int $cf::RUNTIME - $map->{last_save}; 150 my $svd = int $cf::RUNTIME - $map->{last_save};
151 $svd = "++" if $svd > 99; 151 $svd = "++" if $svd > 99;
152 152
153 $ob->reply (undef, 153 $ob->reply (undef,
154 (sprintf $format, 154 (sprintf $format,
155 (scalar $map->players), 155 (scalar $map->players),
156 $IN_MEMORY{$map->in_memory} || "?", 156 $IN_MEMORY{$map->in_memory} || "?",
157 $svd, 157 $svd,
158 (int $map->reset_at - $cf::RUNTIME), 158 (int $map->reset_at - $cf::RUNTIME),
159 $map->{path}->visible_name), 159 $map->visible_name),
160 cf::NDI_BLACK | cf::NDI_UNIQUE); 160 cf::NDI_BLACK | cf::NDI_UNIQUE);
161 } 161 }
162 162
163 1 163 1
164}; 164};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines