--- deliantra/server/ext/chat.ext 2007/03/01 14:17:49 1.11 +++ deliantra/server/ext/chat.ext 2007/04/13 05:32:12 1.13 @@ -882,6 +882,7 @@ } elsif ($other->ob->{ext_ignore_tell}{$name} >= time) { $pl->message ("$target ignores what you say. Give up on it.", cf::NDI_UNIQUE); } else { + return if $other->invoke (cf::EVENT_PLAYER_TOLD, $pl->contr, $msg); utf8::encode $msg; # ->message not yet utf8-ified cf::LOG cf::llevDebug, sprintf "TELL [%s>%s] %s\n", $name, $target, $msg; @@ -1018,26 +1019,3 @@ } }; -cf::register_command seen => sub { - my ($pl, $args) = @_; - - if (my ($login) = $args =~ /(\S+)/) { - if ($login eq $pl->name) { - $pl->message ("Very funny, $login. Ha. Ha.", cf::NDI_UNIQUE); - } elsif (cf::player::find_active $login) { - $pl->message ("$login is right here on this server!", cf::NDI_UNIQUE); - } elsif (cf::player::exists $login - and stat sprintf "%s/%s/%s/%s.pl", cf::localdir, cf::playerdir, ($login) x 2) { - my $time = (stat _)[9]; - - $pl->message ("$login was last seen here " - . (POSIX::strftime "%Y-%m-%d %H:%M:%S +0000", gmtime $time) - . " which was " . (int +(time - $time) / 3600) . " hours ago.", cf::NDI_UNIQUE); - } else { - $pl->message ("No player named $login is known to me.", cf::NDI_UNIQUE); - } - } else { - $pl->message ("Usage: seen ", cf::NDI_UNIQUE); - } -}; -