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

Comparing deliantra/maps/perl/commands.ext (file contents):
Revision 1.5 by root, Fri Sep 29 19:27:18 2006 UTC vs.
Revision 1.10 by root, Fri Oct 6 15:29:23 2006 UTC

62 "* " . $ob->name . "/" . $ob->level . " " . (length $pl->own_title ? $pl->own_title : "the " . $pl->title) 62 "* " . $ob->name . "/" . $ob->level . " " . (length $pl->own_title ? $pl->own_title : "the " . $pl->title)
63 . ($pl->peaceful ? " [peaceful]" : " [HOSTILE]") 63 . ($pl->peaceful ? " [peaceful]" : " [HOSTILE]")
64 . ($ob->flag (cf::FLAG_AFK) ? " [AFK]" : "") 64 . ($ob->flag (cf::FLAG_AFK) ? " [AFK]" : "")
65 . ($ob->flag (cf::FLAG_WIZ) ? " [WIZ]" : "") 65 . ($ob->flag (cf::FLAG_WIZ) ? " [WIZ]" : "")
66 . " [" . $pl->client . "]" 66 . " [" . $pl->client . "]"
67 . " [" . ($pl->peaceful ? $ob->map->path : $ob->map->region ? $ob->map->region->name : "the unknown") . "]" 67 . " [" . ($pl->peaceful || $privileged ? $ob->map->path : $ob->map->region ? $ob->map->region->name : "the unknown") . "]"
68 . ($privileged ? " " . $pl->host : "") 68 . ($privileged ? " " . $pl->host : "")
69 } sort { $a->ob->name cmp $b->ob->name } @pl 69 } sort { (lc $a->ob->name) cmp (lc $b->ob->name) } @pl
70 ) 70 )
71} 71}
72 72
73cf::register_command who => $cf::TICK, sub { 73cf::register_command who => $cf::TICK, sub {
74 my ($ob, $arg) = @_; 74 my ($ob, $arg) = @_;
75 75
76 $ob->reply (undef, (join "x\n", who_listing $ob->flag (cf::FLAG_WIZ)), cf::NDI_UNIQUE | cf::NDI_GOLD); 76 $ob->reply (undef, (join "\n", who_listing $ob->flag (cf::FLAG_WIZ)), cf::NDI_UNIQUE | cf::NDI_DK_ORANGE);
77}; 77};
78 78
79cf::register_command rename => $cf::TICK, sub { 79cf::register_command rename => $cf::TICK, sub {
80 my ($ob, $arg) = @_; 80 my ($ob, $arg) = @_;
81 81
82 if ($arg =~ /^\s* (?: <([^>]+)> \s+)? to \s+ <([^>]+)> \s*$/x) { 82 if ($arg =~ /^\s* (?: <([^>]+)> \s+)? to \s+ <([^>]*)> \s*$/x) {
83 # compatibility syntax 83 # compatibility syntax
84 rename_to $ob, $1, $2; 84 rename_to $ob, $1, $2;
85 } elsif ($arg =~ / 85 } elsif ($arg =~ /
86 ^\s* 86 ^\s*
87 (?: 87 (?:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines