ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/chatlog.ext
Revision: 1.1
Committed: Fri Mar 2 00:29:08 2007 UTC (17 years, 2 months ago) by pippijn
Branch: MAIN
Log Message:
added told and started some kind of chat/tell logging attachment (say works)

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
9 ext::schmorp_irc::do_notice (sprintf "[$name-fon] %s: %s\n", $pl->ob->name, $msg);
10 },
11 ;
12
13 cf::player::attachment "log_told",
14 on_tell => sub {
15 my ($self, $other, $msg) = @_;
16
17 #my $name = $self->name;
18
19 ext::schmorp_irc::do_notice ("[$self->$other]: $msg\n");
20 },
21 on_told => sub {
22 my ($self, $pl, $msg) = @_;
23
24 my $name = $self->name;
25
26 ext::schmorp_irc::do_notice (sprintf "[%s->$name] %s: %s\n", $pl->ob->name, $msg);
27 },
28 ;
29