ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/chatlog.ext
Revision: 1.2
Committed: Fri Mar 2 00:37:19 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.1: +1 -6 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #! perl
2
3 cf::object::attachment "log_say",
4 on_say => sub {
5 my ($self, $pl, $msg) = @_;
6
7 my $name = $self->name;
8 ext::schmorp_irc::do_notice (sprintf "[$name-fon] %s: %s\n", $pl->ob->name, $msg);
9 },
10 ;
11
12 cf::player::attachment "log_told",
13 on_tell => sub {
14 my ($self, $other, $msg) = @_;
15 ext::schmorp_irc::do_notice ("[$self->$other]: $msg\n");
16 },
17 on_told => sub {
18 my ($self, $pl, $msg) = @_;
19
20 my $name = $self->ob->name;
21 ext::schmorp_irc::do_notice (sprintf "[%s->$name] %s: %s\n", $pl->ob->name, $msg);
22 },
23 ;
24